Testing Github Actions

master
random-geek 2021-05-21 23:41:50 -07:00
parent dcf8de18eb
commit 42cbd21650
1 changed files with 39 additions and 0 deletions

39
.github/workflows/publish.yml vendored Normal file
View File

@ -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 }}