Skip to content

TemplateCache/customs: don't fail on missing keys (#538) #47

TemplateCache/customs: don't fail on missing keys (#538)

TemplateCache/customs: don't fail on missing keys (#538) #47

Workflow file for this run

name: release
on:
push:
branches: [ main ]
paths: [ CHANGELOG.md ]
jobs:
release:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Add env vars
run: |
echo GORELEASER_CURRENT_TAG=$(go run main.go latest) >> $GITHUB_ENV
echo RELEASE_NOTES_PATH=.changes/$(go run main.go latest).md >> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/[email protected]
with:
version: latest
args: --rm-dist --release-notes=${{ env.RELEASE_NOTES_PATH }} --skip-validate --debug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Hugo
uses: peaceiris/[email protected]
with:
hugo-version: 'latest'
extended: true
- name: Build docs
run: |
go run main.go gen
awk 'NR > 1' CHANGELOG.md >> docs/content/guide/changelog/index.md
hugo --minify -s docs -b https://changie.dev/
- name: Deploy docs
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/public
cname: changie.dev