Skip to content

Commit

Permalink
Add artifact to the release (refs #32)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuighiV committed Jul 13, 2021
1 parent bef0998 commit 5ff92f9
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,40 @@ on:
jobs:

build:
runs-on: windows-2019

defaults:
run:
shell: bash
working-directory: .

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Compile go
env:
GOROOT_1_14_X64: 1
GOEXE: .exe
run: make

- name: Save compiled file
uses: actions/upload-artifact@v2
with:
name: gui
path: gui.exe

release:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- name: Download result from build
uses: actions/download-artifact@v2
with:
name: gui

- uses: ncipollo/release-action@v1
with:
artifacts: "gui"
artifacts: "gui,gui.exe"
body: "LoRa Simulator release"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5ff92f9

Please sign in to comment.