Files
crete/.gitea/workflows/release.yaml
T
Workflow config file is invalid. Please check your config file: model.ReadWorkflow: yaml: unknown anchor 'checkout' referenced
2026-04-05 05:23:24 +02:00

55 lines
1.6 KiB
YAML

name: Release-plz
on:
push:
branches:
- main
jobs:
# TODO: Uncomment in initial release commit
# release-plz:
# name: Release-plz Release
# runs-on: ubuntu-latest
# permissions:
# contents: write
# pull-requests: read
# steps:
# - &checkout
# uses: actions/checkout@v6
# with:
# fetch-depth: 0
# persist-credentials: false
# - uses: dtolnay/rust-toolchain@nightly
# - uses: Swatinem/rust-cache@v2
# - uses: taiki-e/install-action@v2
# with:
# tool: release-plz
# - &git-setup
# name: Configure git
# run: |
# git config user.name "Release-plz"
# git config user.email "release-plz@noreply.huizinga.dev"
# git config url.https://${{ gitea.actor }}:${{ secrets.GITEA_TOKEN }}@git.huizinga.dev/.insteadOf https://git.huizinga.dev/
# - env:
# CARGO_REGISTRIES_HUIZINGA_TOKEN: "Bearer ${{ secrets.REGISTRY_TOKEN }}"
# run: release-plz release --git-token "${{ secrets.GITEA_TOKEN }}" --forge gitea
release-plz-pr:
name: Release-plz PR
runs-on: ubuntu-latest
concurrency:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
permissions:
contents: write
pull-requests: write
steps:
- *checkout
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
with:
tool: release-plz
- *git-setup
- run: release-plz release-pr --git-token "${{ secrets.GITEA_TOKEN }}" --forge gitea