teamspeak-query-lib/.forgejo/workflows/build.yaml

29 lines
810 B
YAML
Raw Normal View History

2024-01-25 18:43:51 +00:00
on:
push:
2024-03-05 16:38:18 +00:00
tags:
- v**
2024-01-25 18:43:51 +00:00
jobs:
2024-03-05 16:38:18 +00:00
build-upload:
2024-01-25 18:43:51 +00:00
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
2024-03-05 16:38:18 +00:00
- id: copy-ts-control-artificat
run: |
2024-09-30 22:20:08 +00:00
cp ${{ github.workspace }}/target/release/teamspeak-query-lib /tmp/artifacts
2024-03-05 16:38:18 +00:00
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 }}