more action

This commit is contained in:
Hamcha 2024-04-13 02:19:51 +02:00
parent b56a5bcb74
commit ecc55c2911
Signed by: hamcha
GPG key ID: 1669C533B8CF6D89
3 changed files with 21 additions and 2 deletions

View file

@ -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
on:
@ -15,4 +15,4 @@ jobs:
- uses: https://codeberg.org/wackbyte/rust-toolchain@trunk
with:
toolchain: nightly
- run: cargo publish --token "${{ secrets.CARGO_REGISTRY_TOKEN }}"
- run: cargo publish --package stax-cli --token "${{ secrets.CARGO_REGISTRY_TOKEN }}"

View 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 }}"

View file

@ -2,6 +2,7 @@
name = "libstax"
version = "0.1.0"
edition = "2021"
publish = ["staxman"]
license = "AGPL-3.0-only"
[dependencies]