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