mirror of
https://github.com/bartvdbraak/keyweave.git
synced 2025-04-29 07:41:21 +00:00
feat: add job to publish to crates.io
This commit is contained in:
parent
852a0e6fef
commit
41a622e34d
1 changed files with 19 additions and 4 deletions
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
|
@ -145,12 +145,12 @@ jobs:
|
||||||
keyweave-*.tar.xz
|
keyweave-*.tar.xz
|
||||||
keyweave-x86_64-pc-windows-gnu/keyweave.exe
|
keyweave-x86_64-pc-windows-gnu/keyweave.exe
|
||||||
|
|
||||||
sign:
|
release:
|
||||||
needs:
|
needs:
|
||||||
- pre-check
|
- pre-check
|
||||||
- build
|
- build
|
||||||
|
|
||||||
name: Checksum and sign
|
name: Sign and Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
|
@ -195,7 +195,6 @@ jobs:
|
||||||
github-token: ${{ secrets.PAT_TOKEN }}
|
github-token: ${{ secrets.PAT_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
const sha256sums = ${{ steps.homebrew-inputs.outputs.sha256sums }}
|
const sha256sums = ${{ steps.homebrew-inputs.outputs.sha256sums }}
|
||||||
|
|
||||||
await github.rest.actions.createWorkflowDispatch({
|
await github.rest.actions.createWorkflowDispatch({
|
||||||
owner: 'bartvdbraak',
|
owner: 'bartvdbraak',
|
||||||
repo: 'homebrew-keyweave',
|
repo: 'homebrew-keyweave',
|
||||||
|
@ -205,4 +204,20 @@ jobs:
|
||||||
version: '${{ needs.pre-check.outputs.version }}',
|
version: '${{ needs.pre-check.outputs.version }}',
|
||||||
sha256sums: JSON.stringify(sha256sums)
|
sha256sums: JSON.stringify(sha256sums)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
publish:
|
||||||
|
needs: release
|
||||||
|
name: Publish crate
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Install stable toolchain
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
|
||||||
|
- run: cargo publish --token ${CARGO_REGISTRY_TOKEN}
|
||||||
|
env:
|
||||||
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
Loading…
Reference in a new issue