diff options
| author | Fuwn <[email protected]> | 2021-05-20 05:13:08 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-20 05:13:08 +0000 |
| commit | 8b125cedf97ed9d76bae0a5503c7756a76b8e677 (patch) | |
| tree | 80230844452b754a1cd6039e5ff961aa60ed2a2a /.github/workflows/release.yml | |
| parent | feat(cli): conditional file specification (diff) | |
| download | nitrous-8b125cedf97ed9d76bae0a5503c7756a76b8e677.tar.xz nitrous-8b125cedf97ed9d76bae0a5503c7756a76b8e677.zip | |
feat(actions): automatic release binaries
Diffstat (limited to '.github/workflows/release.yml')
| -rw-r--r-- | .github/workflows/release.yml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b771da4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,47 @@ +name: Release ⚾ + +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛒 + uses: actions/checkout@v2 + + - name: Toolchain 🧰 + uses: actions-rs/toolchain@v1 + with: + profile-minimal: minimal + toolchain: nightly-2021-05-19 + components: rustfmt, clippy + override: true + + - name: Build 🏗 + uses: actions-rs/cargo@v1 + continue-on-error: false + with: + command: build --release + + - name: Create Release 🏉 + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + + - name: Upload Artifacts to Release 💎 + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./target/release/nitrous + asset_name: nitrous |