teamspeak-query-lib/.forgejo/workflows/build.yaml
Tobias Reisinger 8d1e813c0b
All checks were successful
/ build-upload (push) Successful in 1m4s
Update actions workflow
2024-03-05 17:38:18 +01:00

36 lines
1.1 KiB
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
- uses: https://code.forgejo.org/actions/upload-artifact@v3
with:
name: teamspeak-query-lib
path: ${{ github.workspace }}/target/release/teamspeak-query-lib
- uses: https://code.forgejo.org/actions/download-artifact@v3
with:
name: teamspeak-query-lib
path: /tmp/artifacts
shell: bash
- id: copy-ts-control-artificat
run: |
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 }}