mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Publish to crates.io as part of the GitHub Actions release workflow
This commit is contained in:
@@ -2,7 +2,7 @@ name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: '*'
|
||||
tags: '*.*.*'
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
@@ -126,3 +126,21 @@ jobs:
|
||||
asset_path: cpp/build/package/${{ steps.build-archive.outputs.filename }}
|
||||
asset_name: ${{ steps.build-archive.outputs.filename }}
|
||||
asset_content_type: application/x-7z-compressed
|
||||
|
||||
publish:
|
||||
runs-on: ubuntu-24.04
|
||||
|
||||
environment: release
|
||||
|
||||
permissions:
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: rust-lang/crates-io-auth-action@v1
|
||||
id: auth
|
||||
|
||||
- run: cargo publish -p libloot
|
||||
env:
|
||||
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
|
||||
|
||||
Reference in New Issue
Block a user