Skip to content

Commit

Permalink
Upload release artifacts automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasferrandiz committed Jul 21, 2022
1 parent 0ef0e29 commit b1cb4fa
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,34 @@ jobs:
docker pull ${{ steps.meta.outputs.tags }}
docker tag ${{ steps.meta.outputs.tags }} ${{ env.REPOSITORY }}:latest
docker push ${{ env.REPOSITORY }}:latest
build-and-push-artifacts:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write

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

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}

- name: go mod vendor
run: go mod vendor

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Build release artifacts
run: make release

- name: Upload release files
uses: softprops/action-gh-release@v1
with:
files: |
dist/flannel*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ default.etcd/
flannel.exe
bash_unit
dist/qemu-*
.vscode/*

0 comments on commit b1cb4fa

Please sign in to comment.