Skip to content

Commit

Permalink
Added admin_token to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
atteggiani committed Nov 8, 2023
1 parent 0870635 commit 4f89711
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/create_pr_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.ADMIN_TOKEN }}



- name: Python setup
uses: actions/setup-python@v4
with:
Expand All @@ -40,6 +37,7 @@ jobs:
- name: Add preview on gh-pages branch
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.ADMIN_TOKEN }}
branch: ${{ env.TARGET_BRANCH }}
folder: website
target-folder: ${{ env.TARGET_FOLDER }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/deploy_development_website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.ADMIN_TOKEN }}

- name: Python setup
uses: actions/setup-python@v4
Expand All @@ -38,6 +36,7 @@ jobs:
- name: Add preview on gh-pages branch
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.ADMIN_TOKEN }}
branch: ${{ env.TARGET_BRANCH }}
folder: website
target-folder: ${{ env.TARGET_FOLDER }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.ADMIN_TOKEN }}

- uses: actions/setup-python@v4
with:
Expand All @@ -40,6 +38,7 @@ jobs:
- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.ADMIN_TOKEN }}
folder: website
branch: ${{ env.TARGET_BRANCH }}
clean-exclude: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/remove_pr_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.ADMIN_TOKEN }}
ref: ${{ env.TARGET_BRANCH }}

- name: Remove pr-preview
Expand Down

0 comments on commit 4f89711

Please sign in to comment.