Bump golang.org/x/oauth2 from 0.17.0 to 0.18.0 (#54) #23
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: "go: build dev binaries" | |
on: | |
push: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
tag: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Tag Repo | |
uses: richardsimko/update-tag@v1 | |
with: | |
tag_name: dev | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
cleanup: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Delete old release assets | |
uses: mknejp/delete-release-assets@v1 | |
with: | |
token: ${{ github.token }} | |
tag: dev | |
fail-if-no-assets: false | |
assets: | | |
ops-* | |
release: | |
permissions: | |
contents: write | |
needs: cleanup | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
goos: [linux, windows, darwin] | |
goarch: [amd64, arm64] | |
exclude: | |
- goarch: arm64 | |
goos: windows | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Add SHORT_SHA env | |
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV | |
- name: Go Release | |
uses: wangyoucao577/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
goos: ${{ matrix.goos }} | |
goarch: ${{ matrix.goarch }} | |
release_tag: dev | |
overwrite: true | |
pre_command: export CGO_ENABLED=0 | |
ldflags: -extldflags -static -X github.com/getnoops/ops/pkg/version.COMMIT=${{github.sha}} | |
binary_name: ops | |
asset_name: "ops-${{ env.SHORT_SHA }}-${{ matrix.goos }}-${{ matrix.goarch }}" |