mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
WORKFLOW: enhanced for outside runs, removed artifact for flathub as not needed in cooker [skip ci]
This commit is contained in:
parent
de743a3e23
commit
43c99f2e33
12
.github/workflows/cooker-selfhosted.yml
vendored
12
.github/workflows/cooker-selfhosted.yml
vendored
|
@ -41,6 +41,7 @@ jobs:
|
|||
continue-on-error: true
|
||||
|
||||
- name: Generate a token for Rekku
|
||||
if: ${{ github.repository == 'RetroDECK/RetroDECK' }}
|
||||
id: generate-rekku-token
|
||||
uses: actions/create-github-app-token@v1
|
||||
with:
|
||||
|
@ -176,10 +177,11 @@ jobs:
|
|||
allowUpdates: true
|
||||
makeLatest: ${{env.MAKE_LATEST}} # if it's a feat branch is not considered the latest build
|
||||
token: ${{ steps.generate-rekku-token.outputs.token }}
|
||||
repo: Cooker
|
||||
repo: ${{ github.repository_owner == 'RetroDECK' && 'Cooker' || github.event.repository.name }} # "Cooker" if we are in RetroDECK Org, else "this repo"
|
||||
continue-on-error: true
|
||||
|
||||
- name: Rewrite Tag
|
||||
if: ${{ github.repository == 'RetroDECK/RetroDECK' }}
|
||||
run: |
|
||||
git submodule deinit -f --all
|
||||
git fetch --tags
|
||||
|
@ -202,14 +204,6 @@ jobs:
|
|||
path: RetroDECK-cooker.flatpak
|
||||
continue-on-error: true
|
||||
|
||||
- name: Create Artifact for flathub
|
||||
run: |
|
||||
tar -czf ${GITHUB_WORKSPACE}/RetroDECK-Artifact-cooker.tar.gz -C ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker .
|
||||
hash=($(sha256sum ${GITHUB_WORKSPACE}/RetroDECK-Artifact-cooker.tar.gz))
|
||||
echo $hash > ${GITHUB_WORKSPACE}/RetroDECK-Artifact-cooker.sha
|
||||
mv -f RetroDECK-Artifact-cooker.* ${{ secrets.ARTIFACT_REPO }}
|
||||
continue-on-error: true
|
||||
|
||||
# - name: Upload RetroDECK-cooker.flatpak to Gitea Release
|
||||
# run: |
|
||||
# # Set variables for Gitea host, organization, repository, access token, and release details
|
||||
|
|
Loading…
Reference in a new issue