187b530cbf
Adds ssh-key to actions/checkout configurations and fixes yaml indentation in upload_pck.yml
42 lines
1.4 KiB
YAML
42 lines
1.4 KiB
YAML
name: Build and Upload Binaries
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: barichello/godot-ci:4.2.1
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
mkdir -p ~/.ssh
|
|
echo "${{ secrets.TEKTON_SSH_KEY }}" > ~/.ssh/id_rsa
|
|
chmod 600 ~/.ssh/id_rsa
|
|
ssh-keyscan git.klud.top >> ~/.ssh/known_hosts
|
|
git clone git@git.klud.top:danchie/tekton.git .
|
|
git checkout ${{ github.ref_name }}
|
|
|
|
- name: Build Windows
|
|
run: mkdir -p build && godot --headless --export-release "Windows Desktop" build/tekton.exe
|
|
|
|
- name: Build Linux
|
|
run: godot --headless --export-release "Linux/X11" build/tekton.x86_64
|
|
|
|
- name: Upload Windows Binary
|
|
run: |
|
|
curl -X POST \
|
|
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \
|
|
-H "Content-Type: multipart/form-data" \
|
|
-F "attachment=@build/tekton.exe" \
|
|
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/tags/${{ github.ref_name }}"
|
|
|
|
- name: Upload Linux Binary
|
|
run: |
|
|
curl -X POST \
|
|
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \
|
|
-H "Content-Type: multipart/form-data" \
|
|
-F "attachment=@build/tekton.x86_64" \
|
|
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/tags/${{ github.ref_name }}" |