Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammad-fiaz authored Jan 9, 2024
1 parent 0e2fb38 commit 8da1c71
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
on:

Check failure on line 1 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / Build failed

.github/workflows/publish.yml#L1

This run was manually canceled.
push:

tags:
- '*'
branches:
- main

workflow_dispatch:
# This allows you to manually trigger the workflow from the Actions tab in your repository

name: Publish

Expand All @@ -22,6 +23,6 @@ jobs:
toolchain: stable
override: true

- run: cargo publish "--allow-dirty" --token
- run: cargo publish --token ${{ secrets.CRATES_PUBLISH_TOKEN }}
env:
CRATES_TOKEN: ${{ secrets.CRATES_PUBLISH_TOKEN }}

0 comments on commit 8da1c71

Please sign in to comment.