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 c975b8b
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 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,19 @@ 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: Release JARs
runs-on: ubuntu-latest
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 @@ -97,16 +110,18 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
create-release:
name: Create GitHub Release
name: Release Go Binaries
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 c975b8b

Please sign in to comment.