diff --git a/.github/workflows/lint.yaml b/.github/workflows/ci.yaml similarity index 86% rename from .github/workflows/lint.yaml rename to .github/workflows/ci.yaml index 145a017..75c6632 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/ci.yaml @@ -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 }} @@ -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 @@ -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