teamspeak-query-lib/.forgejo/workflows/build.yaml
2024-10-01 00:20:08 +02:00

28 lines
810 B
YAML

on:
push:
tags:
- v**
jobs:
build-upload:
runs-on: docker
steps:
- uses: https://code.forgejo.org/actions/checkout@v3
- id: install-dependencies
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
shell: bash
- id: cargo-build-release
run: |
source "$HOME/.cargo/env"
cargo build --release
shell: bash
- id: copy-ts-control-artificat
run: |
cp ${{ github.workspace }}/target/release/teamspeak-query-lib /tmp/artifacts
cp ${{ github.workspace }}/ts-control /tmp/artifacts
shell: bash
- uses: https://code.forgejo.org/actions/forgejo-release@v1
with:
direction: upload
release-dir: /tmp/artifacts
token: ${{ github.token }}