Skip to content

Commit

Permalink
Publish GitHub release after Docker images have built
Browse files Browse the repository at this point in the history
  • Loading branch information
brainplot committed Sep 21, 2021
1 parent aab2ea2 commit 442e6fe
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,9 @@ on:
- v*

jobs:
github-release:
name: Publish GitHub Release
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '~1.17'

- name: Cross compile & archive release artifacts
run: make xcompress

- name: Publish release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: dist/*

docker-windows:
name: Push Windows Images
runs-on: windows-latest
needs: github-release
steps:
- name: Checkout source code
uses: actions/checkout@v2
Expand All @@ -55,7 +31,6 @@ jobs:
docker-linux:
name: Push Linux images
runs-on: ubuntu-latest
needs: github-release
steps:
- name: Checkout source code
uses: actions/checkout@v2
Expand Down Expand Up @@ -101,3 +76,27 @@ jobs:

- name: Build & push manifest lists
run: make docker-shared

github-release:
name: Publish GitHub Release
runs-on: ubuntu-latest
needs: docker-shared
steps:
- name: Checkout source code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '~1.17'

- name: Cross compile & archive release artifacts
run: make xcompress

- name: Publish release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: dist/*

0 comments on commit 442e6fe

Please sign in to comment.