mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05:39 +00:00
Removing additional token step
This commit is contained in:
parent
83047840a2
commit
e4ae1c311b
21
.github/workflows/build_release.yml
vendored
21
.github/workflows/build_release.yml
vendored
|
@ -238,22 +238,25 @@ jobs:
|
|||
# RetroDECK*.flatpak.sha
|
||||
# RetroDECK*Artifact.tar.gz
|
||||
|
||||
Generate-Rekku-Token:
|
||||
uses: RetroDECK/components-template/.github/workflows/generate_rekku_token.yml@main
|
||||
# needs: Build_RetroDECK
|
||||
secrets:
|
||||
REKKU_PRIVATE_KEY: ${{ secrets.REKKU_PRIVATE_KEY }}
|
||||
|
||||
GitHub-publish:
|
||||
runs-on: ubuntu-latest
|
||||
# needs: [Generate-Rekku-Token, Build_RetroDECK]
|
||||
needs: [Generate-Rekku-Token]
|
||||
env:
|
||||
tag: ${{ needs.Build_RetroDECK.outputs.tag }}
|
||||
release_body: ${{ needs.Build_RetroDECK.outputs.release_body }}
|
||||
MAKE_LATEST: ${{ needs.Build_RetroDECK.outputs.MAKE_LATEST }}
|
||||
steps:
|
||||
|
||||
- name: Generate a token for Rekku
|
||||
if: ${{ github.repository == 'RetroDECK/RetroDECK' }}
|
||||
id: generate-rekku-token
|
||||
uses: actions/create-github-app-token@v1
|
||||
with:
|
||||
app-id: ${{ vars.REKKU_APP_ID }}
|
||||
private-key: ${{ secrets.REKKU_PRIVATE_KEY }}
|
||||
repositories: "RetroDECK,Cooker"
|
||||
owner: "RetroDECK"
|
||||
|
||||
# Determine if Target Repository is Main or not, in that case is a Cooker build
|
||||
- name: Determine target repository
|
||||
id: set-repo
|
||||
|
@ -274,7 +277,7 @@ jobs:
|
|||
artifacts: "*.flatpak,*.flatpak.sha,*Artifact.tar.gz"
|
||||
allowUpdates: true
|
||||
makeLatest: ${{ env.MAKE_LATEST }}
|
||||
token: ${{ needs.Generate-Rekku-Token.outputs.rekku_token }}
|
||||
token: ${{ steps.generate-rekku-token.outputs.token }}
|
||||
repo: "${{ env.repo_name }}"
|
||||
continue-on-error: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
|
@ -291,7 +294,7 @@ jobs:
|
|||
git tag "${{ steps.set-outputs.outputs.tag }}"
|
||||
git push origin "${{ steps.set-outputs.outputs.tag }}"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ env.REKKU_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ steps.generate-rekku-token.outputs.token }}
|
||||
|
||||
# As backup we're even publishing the build on our own selfhosted Fogejo instance
|
||||
# Forgejo Publish Job if main branch
|
||||
|
|
Loading…
Reference in a new issue