fix: make crates.io publish non-blocking, add workflow_dispatch, fix AUR action
This commit is contained in:
1 file changed
+9
-1
@@ -6,6 +6,11 @@ on:
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: 'Version to publish (e.g. 0.3.4)'
|
||||
required: true
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
jobs:
|
||||
@@ -35,6 +40,7 @@ jobs:
|
||||
name: lapctl-${{ github.ref_name }}
|
||||
path: ./target/release/lapctl
|
||||
- name: Publish to crates.io
|
||||
continue-on-error: true
|
||||
env:
|
||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||
run: cargo publish
|
||||
@@ -55,7 +61,9 @@ jobs:
|
||||
run: sudo pacman -S --noconfirm --needed base-devel
|
||||
- name: Get version
|
||||
id: version
|
||||
run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
|
||||
run: echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
|
||||
env:
|
||||
VERSION: ${{ github.event.inputs.version || github.ref_name }}
|
||||
- name: Generate PKGBUILD with cargo-aur
|
||||
run: |
|
||||
cargo install cargo-aur
|
||||
|
||||
Reference in new issue
Block a user