feat: workspace graph redesign (CG0004) — inventory, scopes, FTS5 sea… #11
Workflow file for this run
This file contains hidden or 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: | |
| - 'v*' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Set up just | |
| uses: extractions/setup-just@v3 | |
| - name: Lint | |
| run: just lint | |
| - name: Unit tests | |
| run: just test unit | |
| release: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Set up just | |
| uses: extractions/setup-just@v3 | |
| - name: Validate release credentials | |
| env: | |
| HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} | |
| AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }} | |
| run: | | |
| missing=0 | |
| for name in HOMEBREW_TAP_GITHUB_TOKEN AUR_SSH_KEY; do | |
| if [ -z "${!name:-}" ]; then | |
| echo "::error::Missing required secret ${name}" | |
| missing=1 | |
| fi | |
| done | |
| exit "${missing}" | |
| - name: Trust AUR host key | |
| run: | | |
| mkdir -p ~/.ssh | |
| ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts | |
| - name: Check GoReleaser config | |
| run: just release check | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| version: "~> v2" | |
| args: release --clean | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} | |
| AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }} |