more action
This commit is contained in:
parent
b56a5bcb74
commit
ecc55c2911
3 changed files with 21 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
name: Build and push libstax and stax-cli to cargo registry
|
name: Build and push stax-cli to cargo registry
|
||||||
|
|
||||||
# Only on new tags
|
# Only on new tags
|
||||||
on:
|
on:
|
||||||
|
@ -15,4 +15,4 @@ jobs:
|
||||||
- uses: https://codeberg.org/wackbyte/rust-toolchain@trunk
|
- uses: https://codeberg.org/wackbyte/rust-toolchain@trunk
|
||||||
with:
|
with:
|
||||||
toolchain: nightly
|
toolchain: nightly
|
||||||
- run: cargo publish --token "${{ secrets.CARGO_REGISTRY_TOKEN }}"
|
- run: cargo publish --package stax-cli --token "${{ secrets.CARGO_REGISTRY_TOKEN }}"
|
18
.forgejo/workflows/publish-lib.yaml
Normal file
18
.forgejo/workflows/publish-lib.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
name: Build and push libstax to cargo registry
|
||||||
|
|
||||||
|
# Only on new tags
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "cli-*.*.*"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: https://codeberg.org/wackbyte/rust-toolchain@trunk
|
||||||
|
with:
|
||||||
|
toolchain: nightly
|
||||||
|
- run: cargo publish --package libstax --token "${{ secrets.CARGO_REGISTRY_TOKEN }}"
|
|
@ -2,6 +2,7 @@
|
||||||
name = "libstax"
|
name = "libstax"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
publish = ["staxman"]
|
||||||
license = "AGPL-3.0-only"
|
license = "AGPL-3.0-only"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
Loading…
Reference in a new issue