From 50cb24936327c3220dc9d41bbb4efa95a141c942 Mon Sep 17 00:00:00 2001 From: FujiHaruka Date: Sun, 27 Mar 2022 19:11:36 +0900 Subject: [PATCH] github workflow to release crate --- .github/workflows/publish.yaml | 3 --- .github/workflows/release_crate.yaml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/release_crate.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 2a48b7a..548fb63 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -15,9 +15,6 @@ jobs: - os: ubuntu-latest artifact_name: notion-into-sqlite asset_name: notion-into-sqlite-linux-amd64 - - os: windows-latest - artifact_name: notion-into-sqlite.exe - asset_name: notion-into-sqlite-windows-amd64 - os: macos-latest artifact_name: notion-into-sqlite asset_name: notion-into-sqlite-macos-amd64 diff --git a/.github/workflows/release_crate.yaml b/.github/workflows/release_crate.yaml new file mode 100644 index 0000000..503e24e --- /dev/null +++ b/.github/workflows/release_crate.yaml @@ -0,0 +1,19 @@ +name: Release Crate + +on: + push: + tags: + - '*' + +jobs: + test: + name: run test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/cargo@v1 + with: + command: publish + args: --token ${CRATES_TOKEN} + env: + CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}