actions: update artifact actions #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and release Falconieri | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
- name: Install dependencies | |
run: go get | |
- name: Build Falconieri | |
run: go build | |
- name: Upload Falconieri binary | |
uses: actions/[email protected] | |
with: | |
name: falconieri | |
path: ./falconieri | |
release: | |
runs-on: ubuntu-latest | |
if: startsWith(github.ref, 'refs/tags/') | |
needs: build | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/[email protected] | |
id: download | |
with: | |
name: 'falconieri' | |
- name: Release Falconieri | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ${{steps.download.outputs.download-path}}/falconieri |