Skip to content

Publish (Pre-release) #7

Publish (Pre-release)

Publish (Pre-release) #7

Workflow file for this run

name: Publish (Pre-release)
on:
workflow_dispatch:
workflow_call:
secrets:
CARGO_REGISTRY_TOKEN:
required: true
env:
CARGO_TERM_COLOR: always
jobs:
publish-prerelease:
name: Publish Pre-release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Install cargo-binstall
uses: cargo-bins/[email protected]
- name: Install cargo-release
run: cargo-binstall cargo-release
- name: Login to Cargo
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Git Config
run: git config user.name "GitHub Action" && git config user.email "[email protected]"
- name: Publish RC
run: cargo-release release alpha --execute --no-confirm --config .github/workflows/cargo-release.toml
- name: Logout of Cargo
if: always()
run: cargo logout