chore(main): release 0.21.0 (#1203) #97
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: Build Go Project | |
on: | |
push: | |
paths-ignore: | |
- website/** | |
pull_request: | |
paths-ignore: | |
- website/** | |
merge_group: | |
types: | |
- checks_requested | |
paths-ignore: | |
- website/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Setup Go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5 | |
with: | |
go-version: 1.23.x | |
- name: Set up node | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | |
with: | |
node-version: "20.9" | |
cache: npm | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: bin | |
key: ${{ runner.os }}-${{ hashFiles('Makefile', 'go.mod', 'go.sum') }} | |
- name: Install dependencies | |
run: npm ci | |
- run: make all | |
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | |
with: | |
name: artifacts-${{ runner.os }}-${{ runner.arch }} | |
path: dist/ | |
- name: Check if repository is clean | |
run: | | |
STATUS="$(git status --porcelain)" | |
if [ -z "$STATUS" ]; then | |
echo Repository is clean. | |
else | |
echo "Repository is not clean: | |
$STATUS" | |
exit 1 | |
fi |