From 7563b986750f87f369a3010698558ca003deb548 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 19 Dec 2021 14:41:46 +0900 Subject: [PATCH] Create GitHub release automatically --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d1e7c66 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Release + +on: + push: + tags: + - v[0-9]+.* + +env: + RUSTFLAGS: -D warnings + RUST_BACKTRACE: 1 + +jobs: + create-release: + if: github.repository_owner == 'smol-rs' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Rust + run: rustup update stable + - run: cargo package + - uses: taiki-e/create-gh-release-action@v1 + with: + changelog: CHANGELOG.md + branch: master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}