Release π #85
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release π | |
on: | |
release: | |
types: | |
- created | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
release_binaries_and_images: | |
name: Release binaries and container images | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- uses: ko-build/[email protected] | |
- name: Set up container image name | |
run: echo "KO_DOCKER_REPO=ghcr.io/${GITHUB_REPOSITORY@L}" >> "${GITHUB_ENV}" | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
version: "~> v2" | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build_web: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: web/package.json | |
cache: "npm" | |
cache-dependency-path: | | |
web/package-lock.json | |
- uses: JorelAli/setup-elm@v6 | |
with: | |
elm-version: 0.19.1 | |
- name: Build | |
working-directory: web | |
run: | | |
npm ci | |
env NODE_ENV=production npm run build | |
- uses: actions/upload-pages-artifact@v3 | |
with: | |
path: web/static | |
release_web: | |
needs: build_web | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |