From 9f81be01858c8df1bdbbdfba6eb064b10d01ff18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Afonso?= Date: Thu, 31 Dec 2020 18:34:54 -0400 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..2240b32 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: release + +on: + push: + tags: + - 'v*' +jobs: + release: + name: Build and Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Build project + run: cargo build --release --locked + - name: Upload binary to release + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: target/release/namelesslang + asset_name: nameless-linux-amd64 + tag: ${{ env.GITHUB_REF }} + overwrite: true