WORKFLOW: added placeholder to publish on gitea

This commit is contained in:
XargonWan 2024-04-17 10:23:50 +09:00
parent d8a1822595
commit 4f16597f81

View file

@ -122,3 +122,28 @@ jobs:
name: retrodeck-flatpak name: retrodeck-flatpak
path: RetroDECK.flatpak path: RetroDECK.flatpak
continue-on-error: true continue-on-error: true
# - name: Publish the flatpak in a new release on Gitea
# uses: ncipollo/release-action@v1
# env:
# REL_VER: ${{ env.REL_VER }}
# with:
# tag: ${{ env.REL_VER }}
# name: "RetroDECK v${{ env.REL_VER }}"
# bodyFile: "body.md"
# artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz"
# allowUpdates: true
# makeLatest: true
# token: ${{ secrets.GITEA_TRIGGER_BUILD_TOKEN }} # Replace with your Gitea token secret
# repo: "organization/repo" # Replace with your Gitea repository path
# continue-on-error: true
# - name: Upload RetroDECK.flatpak to Gitea Release
# run: |
# curl -X POST \
# -H "Authorization: token ${GITEA_TOKEN}" \
# -F "file=@RetroDECK.flatpak" \
# "https://gitea.example.com/api/v1/repos/organization/repo/releases/${{ env.REL_VER }}/assets?name=RetroDECK.flatpak"
# env:
# GITEA_TOKEN: ${{ secrets.GITEA_TRIGGER_BUILD_TOKEN }} # Replace with your Gitea token secret