Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 24 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
steps:
- name: Generate App Token
id: generate_token
uses: tibdex/github-app-token@v2
uses: actions/create-github-app-token@v1
with:
app_id: ${{ secrets.API_PLATFORM_APP_ID }}
private_key: ${{ secrets.API_PLATFORM_APP_PRIVATE_KEY }}
app-id: ${{ secrets.API_PLATFORM_APP_ID }}
private-key: ${{ secrets.API_PLATFORM_APP_PRIVATE_KEY }}

- name: Checkout repository
uses: actions/checkout@v6
Expand All @@ -52,12 +52,30 @@ jobs:
steps:
- name: Generate App Token
id: generate_token
uses: tibdex/github-app-token@v2
uses: actions/create-github-app-token@v1
with:
app_id: ${{ secrets.API_PLATFORM_APP_ID }}
private_key: ${{ secrets.API_PLATFORM_APP_PRIVATE_KEY }}
app-id: ${{ secrets.API_PLATFORM_APP_ID }}
private-key: ${{ secrets.API_PLATFORM_APP_PRIVATE_KEY }}

- name: Update distribution
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
run: gh workflow run -R api-platform/api-platform release.yml -f tag=${{ github.ref_name }}

dispatch-demo-update:
name: Dispatch Demo Update
runs-on: ubuntu-latest
needs: split
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Generate App Token
id: generate_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.API_PLATFORM_APP_ID }}
private-key: ${{ secrets.API_PLATFORM_APP_PRIVATE_KEY }}

- name: Update demo
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
run: gh workflow run -R api-platform/demo upgrade-api-platform.yml
Loading