Skip to content

Commit

Permalink
ghactions: Automatically upload release artifacts
Browse files Browse the repository at this point in the history
This makes use of https://github.com/softprops/action-gh-release to
automatically upload binaries to new releases.
  • Loading branch information
cfergeau committed Jan 17, 2024
1 parent 8912b78 commit 9568b29
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Go
on:
push:
branches: [ main ]
tags:
- 'v*'
pull_request:
branches: [ main ]

Expand Down Expand Up @@ -33,6 +35,17 @@ jobs:
name: gvisor-tap-vsock-binaries
path: bin/*

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
bin/gvforwarder
bin/gvproxy-darwin
bin/gvproxy-linux
bin/gvproxy-windows.exe
bin/qemu-wrapper
tests:
runs-on: macos-latest # Only Mac runners support nested virt
needs: build # Don't bother testing if cross arch build fails
Expand Down

0 comments on commit 9568b29

Please sign in to comment.