Merge pull request #204 from planetscale/update-data/2025-11-03_0344 #55
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: create release assets | |
| on: | |
| push: | |
| branches: | |
| - main | |
| # limit when we create a release by the files changed: | |
| paths: | |
| - go.mod | |
| - go.sum | |
| - '**.go' | |
| workflow_dispatch: | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| packages: write | |
| steps: | |
| - name: checkout code with full history (unshallow) | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| persist-credentials: false | |
| - name: install autotag binary | |
| run: | | |
| curl -sL https://git.io/autotag-install | sh -s -- -b "${RUNNER_TEMP}/bin" | |
| echo "${RUNNER_TEMP}/bin" >> $GITHUB_PATH | |
| - name: increment tag and create release | |
| run: | | |
| set -eou pipefail | |
| new_version=$(autotag -vn) | |
| gh release create v"${new_version}" --target main --title "v${new_version}" --generate-notes | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |