fix(ci): directly call API to create release

This commit is contained in:
Luke Tainton 2025-01-02 17:51:28 +00:00
parent 4190a6bce2
commit c4b9bb0714
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo

View File

@ -133,15 +133,23 @@ jobs:
skip-tag: true skip-tag: true
- name: Create release - name: Create release
id: create_release run: |
uses: akkuman/gitea-release-action@v1 curl -X POST -H "Authorization: token ${{ vars.PACKAGES_REGISTRY_PASSWORD }}" \
env: -H "accept: application/json" \
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 -H "Content-Type: application/json" \
with: -d "{\"tag_name\": \"${{ steps.get_next_version.outputs.tag }}\", \"name\": \"${{ steps.get_next_version.outputs.tag }}\", \"body\": \"${{ steps.get_next_version.outputs.changelog }}\"}" \
tag: ${{ steps.get_next_version.outputs.tag }} "${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases"
name: ${{ steps.get_next_version.outputs.tag }}
# body_path: .changelog # - name: Create release
body: ${{ steps.get_next_version.outputs.changelog }} # id: create_release
# uses: akkuman/gitea-release-action@v1
# env:
# NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
# with:
# tag: ${{ steps.get_next_version.outputs.tag }}
# name: ${{ steps.get_next_version.outputs.tag }}
# # body_path: .changelog
# body: ${{ steps.get_next_version.outputs.changelog }}
- name: Set success/fail flag - name: Set success/fail flag
id: set_flag id: set_flag