Merge pull request #2 from Countoscope/added-tutorial #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy GitHub Pages | |
on: | |
push: | |
branches: | |
- main # Set a branch name to trigger deployment | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
context: . | |
submodules: true | |
lfs: true | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
context: . | |
python-version: 3.9 | |
- name: Install sphinx | |
run: | | |
pip install -r requirements.txt | |
cd countoscope/ | |
pip install -r requirements.txt | |
pip install . | |
- name: Build | |
run: | | |
cd docs/ | |
make clean | |
make html | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
context: . | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/build/html/ |