36 lines
1.1 KiB
YAML
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 }}
|