diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 35096d0..359ba26 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,14 +13,14 @@ permissions: jobs: release: runs-on: ubuntu-latest - environment: npm + environment: Publish steps: - name: Get CI Bot Token - uses: tibdex/github-app-token@v1 + uses: actions/create-github-app-token@v3 id: ci_bot_token with: - app_id: ${{ secrets.CI_BOT_APP_ID }} - private_key: ${{ secrets.CI_BOT_SECRET }} + client-id: ${{ vars.PUBLISH_CI_APP_CLIENT_ID }} + private-key: ${{ secrets.PUBLISH_CI_APP_KEY }} - name: Checkout source code uses: actions/checkout@v4 diff --git a/.github/workflows/sync-docs.yml b/.github/workflows/sync-docs.yml index 5e1e4e8..5ff3ec7 100644 --- a/.github/workflows/sync-docs.yml +++ b/.github/workflows/sync-docs.yml @@ -9,6 +9,7 @@ jobs: generate-and-sync: if: github.event_name != 'release' || !contains(github.event.release.tag_name, '-') runs-on: ubuntu-latest + environment: Sync-docs permissions: contents: read steps: @@ -38,9 +39,9 @@ jobs: - name: Generate docs repo token id: app-token - uses: actions/create-github-app-token@v1 + uses: actions/create-github-app-token@v3 with: - app-id: ${{ vars.DOCS_SYNC_APP_ID }} + client-id: ${{ vars.DOCS_SYNC_APP_CLIENT_ID }} private-key: ${{ secrets.DOCS_SYNC_APP_KEY }} repositories: genlayer-docs