Skip to content

Commit

Permalink
feat: test
Browse files Browse the repository at this point in the history
  • Loading branch information
nashaofu committed Jan 31, 2024
1 parent 11c02d1 commit c56513b
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/lint.yaml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: Lint
name: CI

on:
push:
branches:
- master
tags-ignore:
- "**"
pull_request: null
tags:
- v*.*.*

pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -44,8 +47,9 @@ jobs:
publish:
name: Publish
runs-on: ubuntu-latest
needs:
- lint
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
# needs:
# - lint
steps:
- uses: actions/checkout@v3

Expand All @@ -57,7 +61,6 @@ jobs:
components: rustfmt, clippy

- name: Publish
if: github.event_name != 'pull_request'
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
run: cargo publish --registry crates-io --token $NPM_TOKEN

0 comments on commit c56513b

Please sign in to comment.