187b530cbf
Adds ssh-key to actions/checkout configurations and fixes yaml indentation in upload_pck.yml
39 lines
1.3 KiB
YAML
39 lines
1.3 KiB
YAML
name: Upload PCK to Gitea Release
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
upload:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: barichello/godot-ci:4.3
|
|
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 PCK
|
|
run: godot --headless -s tools/build_patch.gd
|
|
|
|
- name: Upload PCK to Release
|
|
run: |
|
|
curl -X POST \
|
|
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \
|
|
-H "Content-Type: multipart/form-data" \
|
|
-F "attachment=@patch.pck" \
|
|
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/tags/${{ github.ref_name }}"
|
|
|
|
- name: Upload version.json to Release
|
|
run: |
|
|
curl -X POST \
|
|
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \
|
|
-H "Content-Type: multipart/form-data" \
|
|
-F "attachment=@assets/data/version.json" \
|
|
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/tags/${{ github.ref_name }}" |