-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
71 additions
and
72 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,94 +40,93 @@ jobs: | |
- name: Display version | ||
run: | | ||
echo SemVer: $SEMVER | ||
# build-n-publish: | ||
# name: Build and publish Python 🐍 distributions 📦 to PyPI | ||
# runs-on: ubuntu-latest | ||
# needs: calculate-version | ||
# env: | ||
# SEMVER: ${{ needs.calculate-version.outputs.semVer }} | ||
# PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
# PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | ||
# steps: | ||
# - uses: actions/checkout@master | ||
# - name: Set up Python 3.10 | ||
# uses: actions/setup-python@v3 | ||
# with: | ||
# python-version: "3.10" | ||
# - name: Install pypa/build | ||
# run: >- | ||
# python -m | ||
# pip install | ||
# build | ||
# --user | ||
# - name: Install project requirements | ||
# run: >- | ||
# pip install -r requirements.txt | ||
# - name: Build binary wheel | ||
# run: | | ||
# python setup.py ${{env.SEMVER}} sdist bdist_wheel | ||
# - name: Publish package to PyPI | ||
# uses: pypa/gh-action-pypi-publish@release/v1 | ||
# 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-n-publish: | ||
name: Build and publish Python 🐍 distributions 📦 to PyPI | ||
runs-on: ubuntu-latest | ||
needs: calculate-version | ||
env: | ||
SEMVER: ${{ needs.calculate-version.outputs.semVer }} | ||
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
- name: Install pypa/build | ||
run: >- | ||
python -m | ||
pip install | ||
build | ||
--user | ||
- name: Install project requirements | ||
run: >- | ||
pip install -r requirements.txt | ||
- name: Build binary wheel | ||
run: | | ||
python setup.py ${{env.SEMVER}} sdist bdist_wheel | ||
- name: Publish package to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
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] | ||
|
||
# - 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: calculate-version | ||
# needs: build-n-publish | ||
needs: build-n-publish | ||
name: Create a Github Release | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
SEMVER: ${{ needs.calculate-version.outputs.semVer }} | ||
steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v2 | ||
# with: | ||
# fetch-depth: 0 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set the release tag environment variable | ||
run: echo RELEASE_TAG=v$SEMVER >> $GITHUB_ENV | ||
- name: Display Tag | ||
run: echo $RELEASE_TAG | ||
# - name: Create Github release | ||
# run: | | ||
# gh release create $SEMVER | ||
- name: Create Github release | ||
run: | | ||
gh release create $RELEASE_TAG | ||
|
||
|