Github Actions 2
This commit is contained in:
parent
42cbd21650
commit
1844446781
30
.github/workflows/publish.yml
vendored
30
.github/workflows/publish.yml
vendored
@ -1,6 +1,4 @@
|
|||||||
# Workflow adapted from https://daniellockyer.com/automated-rust-releases/.
|
name: Publish binaries
|
||||||
|
|
||||||
name: Publish
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -9,17 +7,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
name: Publish for ${{ matrix.os }}
|
name: Publish binaries for Windows
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: windows-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
name: [windows]
|
|
||||||
|
|
||||||
include:
|
|
||||||
- name: windows
|
|
||||||
os: windows-latest
|
|
||||||
artifact_name: target/release/mapeditr.exe
|
|
||||||
asset_name: mapeditr-windows
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -32,8 +21,13 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --release --locked
|
run: cargo build --release --locked
|
||||||
|
|
||||||
- name: Upload binaries to release
|
- name: Upload artifacts to release
|
||||||
uses: actions/upload-artifact@v2
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.asset_name }}
|
files: |
|
||||||
path: ${{ matrix.artifact_name }}
|
LICENSE.txt
|
||||||
|
README.md
|
||||||
|
Manual.md
|
||||||
|
target/release/mapeditr.exe
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user