36 lines
		
	
	
	
		
			1,013 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			1,013 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| on:
 | |
|   push:
 | |
|     tags:
 | |
|       - v**
 | |
| jobs:
 | |
|   build-upload:
 | |
|     runs-on: docker
 | |
|     container:
 | |
|       image: node:20-bookworm
 | |
|     steps:
 | |
|       - uses: https://code.forgejo.org/actions/checkout@v3
 | |
|       - id: install-dependencies
 | |
|         run: |
 | |
|           curl https://sh.rustup.rs -sSf | sh -s -- -y
 | |
|           apt update
 | |
|           apt install -y ruby ruby-dev
 | |
|           gem install bashly
 | |
|         shell: bash
 | |
|       - id: cargo-build-release
 | |
|         run: |
 | |
|           source "$HOME/.cargo/env"
 | |
|           cargo build --release
 | |
|         shell: bash
 | |
|       - id: bashly-generate
 | |
|         run: |
 | |
|           bashly generate
 | |
|       - 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 }}
 |