Skip to content

Commit

Permalink
ci updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodesdev committed May 25, 2024
1 parent 79ae0eb commit 0a60c09
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

jobs:
build:
test:
runs-on: ubuntu-latest

steps:
Expand All @@ -23,6 +23,18 @@ jobs:

- run: cargo test

publish:
runs-on: ubuntu-latest
needs: test

steps:
- uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Publish
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: cargo publish || true

0 comments on commit 0a60c09

Please sign in to comment.