Skip to content

feat: Add PR checks workflow #6

feat: Add PR checks workflow

feat: Add PR checks workflow #6

Workflow file for this run

name: Build and Release
on:
push:
tags:
- '*'
branches:
- main
pull_request:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install just
run: |
mkdir -p "$HOME/.local/bin"
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to "$HOME/.local/bin"
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: "Set up Go"
uses: actions/setup-go@v5
with:
go-version: '^1.13.1'
- name: Build binaries
run: just build
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: binaries
path: build/fgc-*
- name: Create GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: build/fgc-*
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}