Skip to content

fix: compatibility with notifykit v0.0.11 #60

fix: compatibility with notifykit v0.0.11

fix: compatibility with notifykit v0.0.11 #60

Workflow file for this run

---
name: Build
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
tests:
uses: ./.github/workflows/tests.yml
build:
name: Build
needs: tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 3
- name: Determine Go version from go.mod
run: echo "GO_VERSION=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version: ${{ env.GO_VERSION }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Cache Go modules
uses: actions/cache@v6
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download web dist artifact
uses: actions/download-artifact@v8
with:
name: web-dist
path: web/dist
- name: Log in to GitHub Container registry
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v7
if: success() && startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}