Skip to content

Commit

Permalink
remove dependency on PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 committed Oct 10, 2023
1 parent 1323618 commit 6bb6ec0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
workflow_call:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand All @@ -31,6 +32,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Pull latest
run: |
git pull
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT }}


- name: Pull latest
run: |
git pull
Expand All @@ -116,3 +114,8 @@ jobs:

- name: Commit and push
uses: stefanzweifel/git-auto-commit-action@v4

publish-pypi:
needs: update-pypi
if: ${{ always() }}
uses: ./.github/workflows/pages.yml
7 changes: 5 additions & 2 deletions .github/workflows/rerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT }}

- name: Pull latest
run: |
Expand All @@ -116,3 +114,8 @@ jobs:

- name: Commit and push
uses: stefanzweifel/git-auto-commit-action@v4

publish-pypi:
needs: update-pypi
if: ${{ always() }}
uses: ./.github/workflows/pages.yml

0 comments on commit 6bb6ec0

Please sign in to comment.