aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-20 05:13:08 +0000
committerFuwn <[email protected]>2021-05-20 05:13:08 +0000
commit8b125cedf97ed9d76bae0a5503c7756a76b8e677 (patch)
tree80230844452b754a1cd6039e5ff961aa60ed2a2a /.github/workflows/release.yml
parentfeat(cli): conditional file specification (diff)
downloadnitrous-8b125cedf97ed9d76bae0a5503c7756a76b8e677.tar.xz
nitrous-8b125cedf97ed9d76bae0a5503c7756a76b8e677.zip
feat(actions): automatic release binaries
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml47
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