Skip to content

Commit

Permalink
add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
russelltg committed Oct 2, 2023
1 parent 1ee568a commit a8c33bb
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish_crates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: publish-crates
run-name: wl-screenrec is publishing its crates

on:
release:
types: [ published ]

env:
CARGO_TERM_COLOR: always

jobs:
publish:
name: Publish wl-screenrec
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Publish wl-screenrec to crates.io
run: cargo publish --manifest-path ./Cargo.toml --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

0 comments on commit a8c33bb

Please sign in to comment.