From 1844446781c41a40dc4b4d98671e0f892dcf5124 Mon Sep 17 00:00:00 2001 From: random-geek <35757396+random-geek@users.noreply.github.com> Date: Sat, 22 May 2021 15:39:12 -0700 Subject: [PATCH] Github Actions 2 --- .github/workflows/publish.yml | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 26def9c..792abfa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,4 @@ -# Workflow adapted from https://daniellockyer.com/automated-rust-releases/. - -name: Publish +name: Publish binaries on: push: @@ -9,17 +7,8 @@ on: 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 + name: Publish binaries for Windows + runs-on: windows-latest steps: - uses: actions/checkout@v2 @@ -32,8 +21,13 @@ jobs: - name: Build run: cargo build --release --locked - - name: Upload binaries to release - uses: actions/upload-artifact@v2 + - name: Upload artifacts to release + uses: softprops/action-gh-release@v1 with: - name: ${{ matrix.asset_name }} - path: ${{ matrix.artifact_name }} \ No newline at end of file + files: | + LICENSE.txt + README.md + Manual.md + target/release/mapeditr.exe + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}