fix: small fixes, add commands to main (#23) #17
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: Tag | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| tag: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-tags: true | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24' | |
| - name: Tag | |
| run: hack/tag-release.sh | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Sign in to Google Cloud | |
| uses: google-github-actions/auth@v2 | |
| if: env.RELEASE_VERSION != '' | |
| with: | |
| credentials_json: ${{ secrets.GOOGLE_BUCKET_CREDS_JSON }} | |
| - name: Upload archive to Google Bucket | |
| uses: 'google-github-actions/upload-cloud-storage@v2' | |
| if: env.RELEASE_VERSION != '' | |
| with: | |
| path: dist | |
| glob: '*.tar.gz' | |
| parent: false | |
| destination: 'codesphere-oms-builds/tag/oms-${{ env.RELEASE_VERSION }}/${{ env.FOLDER }}' |