Skip to content

[dropshot-api-manager] version 0.1.0 #2

[dropshot-api-manager] version 0.1.0

[dropshot-api-manager] version 0.1.0 #2

Workflow file for this run

# adapted from https://github.com/taiki-e/cargo-hack/blob/main/.github/workflows/release.yml
name: Publish releases to GitHub
on:
push:
tags:
- "*"
jobs:
dropshot-api-manager-release:
if: github.repository_owner == 'oxidecomputer' && startsWith(github.ref_name, 'dropshot-api-manager-0')
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write # Required for OIDC token exchange
contents: write # Required for creating releases
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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@67cc679904bee382389bf22082124fa963c6f6bd # v2
with:
tool: [email protected],just
- uses: taiki-e/create-gh-release-action@26b80501670402f1999aff4b934e1574ef2d3705 # v1
with:
prefix: dropshot-api-manager
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 }}