Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 30 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,56 @@ name: Release
permissions:
pull-requests: write
contents: write
id-token: write

on:
push:
branches:
- main

jobs:
release-plz:
name: Release-plz
release-plz-release:
name: Release-plz Release
runs-on: ubuntu-latest
environment: release
permissions:
contents: write # Required for updating the tags etc.
id-token: write # Required for OIDC token exchange
if: ${{ github.repository_owner == 'ratatui' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- uses: rust-lang/crates-io-auth-action@v1
- name: Authenticate with crates.io
uses: rust-lang/crates-io-auth-action@v1
id: auth
- name: Run release-plz
uses: MarcoIeni/release-plz-action@v0.5
uses: release-plz/action@v0.5
with:
command: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
release-plz-pr:
name: Release-plz PR
runs-on: ubuntu-latest
permissions:
contents: write # Required for updating the tags etc.
pull-requests: write # Required for creating the PR
if: ${{ github.repository_owner == 'ratatui' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: release-plz/action@v0.5
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading