Skip to content

Commit

Permalink
fix: build console before running goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Sep 20, 2023
1 parent 6b659a8 commit 1bd8c5f
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
name: docker-controller-artifact
path: artifacts/ftl-controller
retention-days: 1
release-assets:
release-docker:
name: Release Assets
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -85,6 +85,20 @@ jobs:
docker tag ghcr.io/tbd54566975/ftl-controller:latest ghcr.io/tbd54566975/ftl-controller:$GITHUB_SHA
docker tag ghcr.io/tbd54566975/ftl-controller:latest ghcr.io/tbd54566975/ftl-controller:$version
docker push -a ghcr.io/tbd54566975/ftl-controller
release-jars:
name: Create GitHub Release
runs-on: ubuntu-latest
needs: [release-docker]
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Init Hermit
uses: cashapp/activate-hermit@v1
# Ideally we'd use Hermit's JDK, but this action creates the correct settings.xml for us.
- uses: actions/setup-java@v3
with:
Expand All @@ -99,14 +113,16 @@ jobs:
create-release:
name: Create GitHub Release
runs-on: ubuntu-latest
needs: [release-assets]
needs: [release-docker, release-jars]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Init Hermit
uses: cashapp/activate-hermit@v1
- name: Build Console
run: bit console/client/dist/index.html
- name: Publish Go Binaries
run: goreleaser release
env:
Expand Down

0 comments on commit 1bd8c5f

Please sign in to comment.