edit go version #8
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 Extension | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
pull-requests: write | |
id-token: write | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
outputs: | |
release_created: ${{ steps.release.outputs.release_created }} | |
tag_name: ${{ steps.release.outputs.tag_name }} | |
steps: | |
- name: Create Release | |
id: release | |
uses: googleapis/release-please-action@v4 | |
with: | |
release-type: go | |
- name: Debug Outputs | |
run: | | |
echo "Release Created: ${{ steps.release.outputs.release_created }}" | |
echo "Tag Name: ${{ steps.release.outputs.tag_name }}" | |
build-release: | |
needs: create-release | |
if: ${{ needs.create-release.outputs.release_created == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
- name: Precompile GH Extension | |
uses: cli/gh-extension-precompile@v2 | |
with: | |
go_version_file: go.mod | |
- name: Upload binaries to GitHub Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: ${{ needs.create-release.outputs.tag_name }} | |
files: dist/* |