From a8c33bbca4d762a1f08d7441939a43c34d21265c Mon Sep 17 00:00:00 2001 From: Russell Greene Date: Sun, 1 Oct 2023 21:06:03 -0600 Subject: [PATCH] add publish workflow --- .github/workflows/publish_crates.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/publish_crates.yml 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