mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
WORKFLOW: added steps to publish main on gitea [skip ci]
This commit is contained in:
parent
4f16597f81
commit
27037522f7
44
.github/workflows/main-selfhosted.yml
vendored
44
.github/workflows/main-selfhosted.yml
vendored
|
@ -123,27 +123,27 @@ jobs:
|
||||||
path: RetroDECK.flatpak
|
path: RetroDECK.flatpak
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
# - name: Publish the flatpak in a new release on Gitea
|
- name: Publish the flatpak in a new release on Gitea
|
||||||
# uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
# env:
|
env:
|
||||||
# REL_VER: ${{ env.REL_VER }}
|
REL_VER: ${{ env.REL_VER }}
|
||||||
# with:
|
with:
|
||||||
# tag: ${{ env.REL_VER }}
|
tag: ${{ env.REL_VER }}
|
||||||
# name: "RetroDECK v${{ env.REL_VER }}"
|
name: "RetroDECK v${{ env.REL_VER }}"
|
||||||
# bodyFile: "body.md"
|
bodyFile: "body.md"
|
||||||
# artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz"
|
artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz"
|
||||||
# allowUpdates: true
|
allowUpdates: true
|
||||||
# makeLatest: true
|
makeLatest: true
|
||||||
# token: ${{ secrets.GITEA_TRIGGER_BUILD_TOKEN }} # Replace with your Gitea token secret
|
token: ${{ secrets.GITEA_TRIGGER_BUILD_TOKEN }}
|
||||||
# repo: "organization/repo" # Replace with your Gitea repository path
|
repo: "https://repo.retrodeck.net/RetroDECK/RetroDECK"
|
||||||
# continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
# - name: Upload RetroDECK.flatpak to Gitea Release
|
- name: Upload RetroDECK.flatpak to Gitea Release
|
||||||
# run: |
|
run: |
|
||||||
# curl -X POST \
|
curl -X POST \
|
||||||
# -H "Authorization: token ${GITEA_TOKEN}" \
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
# -F "file=@RetroDECK.flatpak" \
|
-F "file=@RetroDECK.flatpak" \
|
||||||
# "https://gitea.example.com/api/v1/repos/organization/repo/releases/${{ env.REL_VER }}/assets?name=RetroDECK.flatpak"
|
"https://repo.retrodeck.net/RetroDECK/RetroDECK/releases/${{ env.REL_VER }}/assets?name=RetroDECK.flatpak"
|
||||||
# env:
|
env:
|
||||||
# GITEA_TOKEN: ${{ secrets.GITEA_TRIGGER_BUILD_TOKEN }} # Replace with your Gitea token secret
|
GITEA_TOKEN: ${{ secrets.GITEA_TRIGGER_BUILD_TOKEN }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue