diff --git a/.github/workflows/build_artifacts.yml b/.github/workflows/build_artifacts.yml index b3d7c44..e2f6e89 100644 --- a/.github/workflows/build_artifacts.yml +++ b/.github/workflows/build_artifacts.yml @@ -22,11 +22,21 @@ jobs: runs-on: ubuntu-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" + - name: Clone repo uses: actions/checkout@v3 with: submodules: 'true' - token: ${{ secrets.TRIGGER_BUILD_TOKEN }} - name: "Install dependencies" uses: ./.github/workflows/build_artifacts.yml @@ -88,16 +98,6 @@ jobs: id: branch_name run: echo "BRANCH_NAME=$(echo $GITHUB_REF | sed 's|refs/heads/||')" >> $GITHUB_ENV - - 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" - - name: Publish the artifacts in a new release uses: ncipollo/release-action@v1 with: