Skip to content

Fix control api imports #23

Fix control api imports

Fix control api imports #23

Workflow file for this run

name: Release
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "release"
cancel-in-progress: false
jobs:
release:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
concurrency:
group: release-installer-${{ github.ref }}
cancel-in-progress: false
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.5'
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --verbose --clean
env:
GITHUB_TOKEN: ${{ secrets.GHA_RELEASE }}
update-pages:
concurrency:
group: release-installer-${{ github.ref }}
cancel-in-progress: false
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './_scripts/installer'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4