Skip to content

Release πŸš€

Release πŸš€ #75

Workflow file for this run

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: Build
env:
VERSION: ${{ github.ref_name }}
TAGS: ${{ github.ref_name }},${{ github.sha }},latest
shell: bash
run: |
./build.sh "$VERSION"
export KO_DOCKER_REPO="ghcr.io/${GITHUB_REPOSITORY@L}"
ko build --bare --platform=all --tags=$TAGS ./cmd/bf
- uses: actions/upload-artifact@v4
with:
name: bifrost
path: |
bin/*
docs/ca-openapi.yml
- uses: softprops/action-gh-release@v2
with:
append_body: true
generate_release_notes: true
files: |
bin/*
docs/ca-openapi.yml
build_web:
runs-on: ubuntu-latest
env:
NODE_ENV: production
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
- name: Build
working-directory: web
run: |
npm ci
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