Skip to content

Release

Release #1

Workflow file for this run

name: Release
on:
workflow_dispatch:
jobs:
release:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
environment: release
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
persist-credentials: true
- name: Configure Git
run: |
git config user.name "planetscale-actions-bot"
git config user.email "60239337+planetscale-actions-bot@users.noreply.github.com"
- name: Bump version and push tag
id: bump
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
run: script/bump-version.sh
- name: Publish artifacts
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
GORELEASER_CURRENT_TAG: ${{ steps.bump.outputs.RELEASE_VERSION }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
AUR_KEY: ${{ secrets.AUR_KEY }}
run: script/release.sh