Skip to content

Commit

Permalink
bugfix pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JarryShaw authored Nov 8, 2022
1 parent 3225383 commit 00b3b73
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,34 @@ on:
schedule:
- cron: '0 2 * * 6'

permissions:
contents: write

jobs:
deploy-pages:
runs-on: macos-latest
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: macos-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
uses: actions/checkout@v3 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false

- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
brew install python libmagic
python3 -m pip install -U pip setuptools wheel
python3 -m pip install -r docs/requirements.txt
python3 -m pip install .
brew install [email protected] libmagic || true
brew link --force --overwrite [email protected]
python3.11 -m pip install -U pip setuptools wheel
python3.11 -m pip install -r docs/requirements.txt
python3.11 -m pip install .
make -C docs html
# disable Jekyll
touch docs/build/html/.nojekyll
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
Expand Down

0 comments on commit 00b3b73

Please sign in to comment.