docs: publish user docs using github pages (#80) #14
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: | |
push: | |
tags: | |
- '*' | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.21" | |
# NOTE: removing support for snapcraft as their CLI has become increasingly unstable and errors have become | |
# common place. See https://github.com/snapcore/action-publish/issues/28 for an example of some of the issues | |
# that the community has run into. | |
# | |
# - name: Set up Snapcraft | |
# # FIXME: the mkdirs are a hack for https://github.com/goreleaser/goreleaser/issues/1715 | |
# run: | | |
# sudo apt-get update | |
# sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft | |
# mkdir -p $HOME/.cache/snapcraft/download | |
# mkdir -p $HOME/.cache/snapcraft/stage-packages | |
- name: Login to GitHub Container Registry | |
if: startsWith(github.ref, 'refs/tags/v') | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# NOTE: removing support for snapcraft as their CLI has become increasingly unstable and errors have become | |
# common place. See https://github.com/snapcore/action-publish/issues/28 for an example of some of the issues | |
# that the community has run into. | |
# | |
# - name: Snapcraft Login | |
# if: startsWith(github.ref, 'refs/tags/v') | |
# run: | | |
# snapcraft login --with <(echo "${{ secrets.SNAPCRAFT_LOGIN }}") | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v3 | |
with: | |
version: latest | |
args: release --clean -f ./.goreleaser.yml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} |