name: Publish releases to GitHub
on:
push:
tags:
- "*"
jobs:
port-file-release:
if: github.repository_owner == 'oxidecomputer' && startsWith(github.ref_name, 'port-file-0')
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write contents: write steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd with:
persist-credentials: false
- uses: rust-lang/crates-io-auth-action@v1
id: auth
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install cargo release
uses: taiki-e/install-action@b8cecb83565409bcc297b2df6e77f030b2a468d5 with:
tool: cargo-release@0.25.17,just
- uses: taiki-e/create-gh-release-action@eba8ea96c86cca8a37f1b56e94b4d13301fba651 with:
prefix: port-file
changelog: CHANGELOG.md
title: $prefix $version
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: just ci-cargo-release
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}