Bump actions/checkout from 4.1.0 to 4.1.1 #159
Workflow file for this run
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 | |
on: | |
release: | |
types: ["published"] | |
pull_request: | |
branches: ["main"] | |
env: | |
GOLANG_VERSION: "1.20" | |
jobs: | |
build: | |
name: Build OS-Agent | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 # Needed for changelog generation | |
- name: Setup go ${{ env.GOLANG_VERSION }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GOLANG_VERSION }} | |
- name: Run GoReleaser build | |
uses: goreleaser/[email protected] | |
if: github.event_name == 'pull_request' | |
with: | |
args: build --snapshot --clean | |
- name: Run GoReleaser release | |
uses: goreleaser/[email protected] | |
if: github.event_name == 'release' | |
with: | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |