Files
wow-Heimdall/.github/workflows/release.yml
PhatPhuckDave cd80c9fc0e
Some checks failed
Release Workflow / release (push) Has been cancelled
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 47s
Add debug workflow
2025-01-29 20:47:14 +01:00

40 lines
1.2 KiB
YAML

name: Release Workflow
on: [push]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run deploy script
run: bash deploy.sh
- name: Create Release
id: create_release
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.JEBENI_TOKEN }}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"tag_name": "${{ github.ref_name }}",
"name": "${{ github.ref_name }}",
"draft": false,
"prerelease": false
}' \
https://git.site.quack-lab.dev/api/v1/repos/dave/Heimdall/releases
- name: Upload Release Asset
run: |
RELEASE_ID=$(curl -s \
-H "Authorization: token ${{ secrets.JEBENI_TOKEN }}" \
https://git.site.quack-lab.dev/api/v1/repos/dave/Heimdall/releases/tags/${{ github.ref_name }} | jq -r '.id')
curl -X POST \
-H "Authorization: token ${{ secrets.JEBENI_TOKEN }}" \
-H "Content-Type: application/zip" \
--data-binary @Heimdall.zip \
https://git.site.quack-lab.dev/api/v1/repos/dave/Heimdall/releases/${RELEASE_ID}/assets