Merge pull request #734 from zhuoyuan-liu/pagination #141
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: Test a new release with GoReleaser | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
env: | |
GOLANG_VERSION: 1.24.3 | |
jobs: | |
test-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@8e57b58e57be52ac95949151e2777ffda8501267 # v5.5.0 | |
with: | |
go-version: ${{ env.GOLANG_VERSION }} | |
- name: Run GoReleaser build | |
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: build --snapshot --clean --single-target | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
with: | |
name: osctrl-binaries | |
path: dist/ | |
retention-days: 1 |