Merge pull request #204 from shelltime/fix/cc-statusline-git-info-cache #375
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write # to create release commit (google-github-actions/release-please-action) | |
| pull-requests: write # to create release PR (google-github-actions/release-please-action) | |
| issues: write # to create release issue (google-github-actions/release-please-action) | |
| jobs: | |
| goreleaser: | |
| runs-on: jp-arm-oracle | |
| environment: CI | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| config-file: release-please-config.json | |
| manifest-file: .release-please-manifest.json | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - run: git fetch --force --tags | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" | |
| - uses: PromptPal/[email protected] | |
| env: | |
| PROMPTPAL_ENDPOINT: ${{ secrets.PROMPTPAL_ENDPOINT }} | |
| PROMPTPAL_API_TOKEN: ${{ secrets.PROMPTPAL_API_TOKEN }} | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| # generate types by PromptPal CLI | |
| command: pp g | |
| - name: Generate | |
| run: | | |
| echo "GH_TAG=$(echo $GITHUB_REF | awk -F / '{print $3}')" >> $GITHUB_ENV | |
| go install github.com/vektra/mockery/[email protected] | |
| mockery | |
| - name: Test | |
| run: go test -timeout 3m -coverprofile=coverage.txt -covermode=atomic ./... | |
| - name: Upload coverage to Codecov | |
| uses: codecov/[email protected] | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - uses: goreleaser/goreleaser-action@v6 | |
| if: ${{ steps.release.outputs.release_created }} | |
| with: | |
| distribution: goreleaser | |
| version: "~> v2" | |
| args: release --clean | |
| env: | |
| PP_ENDPOINT: ${{ secrets.PROMPTPAL_ENDPOINT }} | |
| PP_TOKEN: ${{ secrets.PROMPTPAL_API_TOKEN_PROD }} | |
| VERSION: ${{ steps.release.outputs.tag_name }} | |
| UPTRACE_DSN: ${{ secrets.UPTRACE_DSN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| QUILL_SIGN_P12: ${{ secrets.QUILL_SIGN_P12 }} | |
| QUILL_SIGN_PASSWORD: ${{ secrets.QUILL_SIGN_PASSWORD }} | |
| QUILL_NOTARY_KEY: ${{ secrets.QUILL_NOTARY_KEY }} | |
| QUILL_NOTARY_KEY_ID: ${{ secrets.QUILL_NOTARY_KEY_ID }} | |
| QUILL_NOTARY_ISSUER: ${{ secrets.QUILL_NOTARY_ISSUER }} |