From 42cbd21650d106e3939f7f2829acb0ff0f237e02 Mon Sep 17 00:00:00 2001 From: random-geek <35757396+random-geek@users.noreply.github.com> Date: Fri, 21 May 2021 23:41:50 -0700 Subject: [PATCH] Testing Github Actions --- .github/workflows/publish.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..26def9c --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,39 @@ +# Workflow adapted from https://daniellockyer.com/automated-rust-releases/. + +name: Publish + +on: + push: + tags: + - '*' + +jobs: + publish: + name: Publish for ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + name: [windows] + + include: + - name: windows + os: windows-latest + artifact_name: target/release/mapeditr.exe + asset_name: mapeditr-windows + + steps: + - uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + + - name: Build + run: cargo build --release --locked + + - name: Upload binaries to release + uses: actions/upload-artifact@v2 + with: + name: ${{ matrix.asset_name }} + path: ${{ matrix.artifact_name }} \ No newline at end of file