diff --git a/.github/workflows/publish_crates.yml b/.github/workflows/publish_crates.yml new file mode 100644 index 0000000..e22e7e4 --- /dev/null +++ b/.github/workflows/publish_crates.yml @@ -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 }} + \ No newline at end of file