Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dimtsap authored Nov 9, 2023
1 parent 55f86d6 commit ffcebbd
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,43 +71,43 @@ jobs:
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: dist/
build_docs_job:
runs-on: ubuntu-latest
needs: build-n-publish
name: Build documentation and publishes it to GithubPages
steps:
- name: Checkout
uses: actions/[email protected]
# build_docs_job:
# runs-on: ubuntu-latest
# needs: build-n-publish
# name: Build documentation and publishes it to GithubPages
# steps:
# - name: Checkout
# uses: actions/[email protected]

- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.9
# - name: Setup Python
# uses: actions/[email protected]
# with:
# python-version: 3.9

- name: Install dependencies
run: |
python -m pip install -U sphinx
python -m pip install sphinx-rtd-theme
python -m pip install sphinxcontrib-bibtex
python -m pip install ShockPy
python -m pip install sphinx-gallery
python -m pip install SciencePlots
# - name: Install dependencies
# run: |
# python -m pip install -U sphinx
# python -m pip install sphinx-rtd-theme
# python -m pip install sphinxcontrib-bibtex
# python -m pip install ShockPy
# python -m pip install sphinx-gallery
# python -m pip install SciencePlots

- name: Make the Sphinx Docs
run: |
make -C docs clean
make -C docs html
# - name: Make the Sphinx Docs
# run: |
# make -C docs clean
# make -C docs html

- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
# Path of the directory containing the static assets.
path: docs/build/html/
# - name: Upload GitHub Pages artifact
# uses: actions/[email protected]
# with:
# # Path of the directory containing the static assets.
# path: docs/build/html/

- name: Deploy GitHub Pages site
uses: actions/[email protected]
with:
token: ${{ github.token }}
# - name: Deploy GitHub Pages site
# uses: actions/[email protected]
# with:
# token: ${{ github.token }}
release:
runs-on: ubuntu-latest
needs: build-n-publish
Expand All @@ -126,7 +126,7 @@ jobs:
run: echo $RELEASE_TAG
- name: Create Github release
run: |
gh release create $RELEASE_TAG
gh release create "${{RELEASE_TAG}}"

Expand Down

0 comments on commit ffcebbd

Please sign in to comment.