mirror of
https://github.com/RetroDECK/components-template.git
synced 2024-11-22 03:15:37 +00:00
Added Rekku token step
This commit is contained in:
parent
feaa04b454
commit
475eee46b9
12
.github/workflows/build_artifacts.yml
vendored
12
.github/workflows/build_artifacts.yml
vendored
|
@ -88,6 +88,16 @@ jobs:
|
||||||
id: branch_name
|
id: branch_name
|
||||||
run: echo "BRANCH_NAME=$(echo $GITHUB_REF | sed 's|refs/heads/||')" >> $GITHUB_ENV
|
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
|
- name: Publish the artifacts in a new release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
|
@ -99,4 +109,4 @@ jobs:
|
||||||
artifacts: "${GITHUB_WORKSPACE}/RetroDECK-Artifact.tar.gz, ${GITHUB_WORKSPACE}/tree.html"
|
artifacts: "${GITHUB_WORKSPACE}/RetroDECK-Artifact.tar.gz, ${GITHUB_WORKSPACE}/tree.html"
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
makeLatest: true
|
makeLatest: true
|
||||||
token: ${{ secrets.TRIGGER_BUILD_TOKEN || secrets.GITHUB_TOKEN }}
|
token: ${{ steps.generate-rekku-token.outputs.token || secrets.TRIGGER_BUILD_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue