name: Publish a release
on:
push:
branches:
- main
permissions: {}
jobs:
publish:
name: Publish the log crate runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'rust-lang' }}
environment: publish
permissions:
pull-requests: write contents: write id-token: write steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 with:
fetch-depth: 0
persist-credentials: false
- name: Install Rust
run: rustup update stable
- name: Run release-plz
uses: MarcoIeni/release-plz-action@6caa8d34f74d82b0dc76a18edd1cc3d6801c9baf env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}