Skip to content

ci(release-crates): use Devolutions/actions-public (#608) #8

ci(release-crates): use Devolutions/actions-public (#608)

ci(release-crates): use Devolutions/actions-public (#608) #8

name: Release crates
permissions:
pull-requests: write
contents: write
on:
workflow_dispatch:
push:
branches:
- master
jobs:
# Create a PR with the new versions and changelog, preparing the next release.
open-pr:
name: Release-plz PR
runs-on: ubuntu-latest
concurrency:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 512
- name: Run release-plz
uses: Devolutions/actions-public/release-plz@v1
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ github.token }}
# Release unpublished packages.
release-plz-release:
name: Release-plz release
runs-on: ubuntu-latest
environment: cratesio-push
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 512
- name: Run release-plz
uses: Devolutions/actions-public/release-plz@v1
with:
command: release
env:
GITHUB_TOKEN: ${{ github.token }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}