Skip to content

Commit

Permalink
feat: test
Browse files Browse the repository at this point in the history
  • Loading branch information
nashaofu committed Feb 1, 2024
1 parent 11c02d1 commit 7f46f34
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 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,6 +47,7 @@ jobs:
publish:
name: Publish
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
needs:
- lint
steps:
Expand All @@ -56,8 +60,12 @@ jobs:
override: true
components: rustfmt, clippy

- name: Draft
uses: release-drafter/release-drafter@v5
- name: Release
uses: softprops/action-gh-release@v1

- 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 7f46f34

Please sign in to comment.