Testing Github Actions
This commit is contained in:
parent
dcf8de18eb
commit
42cbd21650
39
.github/workflows/publish.yml
vendored
Normal file
39
.github/workflows/publish.yml
vendored
Normal 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 }}
|
Loading…
x
Reference in New Issue
Block a user