Bump pypa/gh-action-pypi-publish from 1.12.2 to 1.12.3 in the actions group #136
Workflow file for this run
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: Documentation | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
# Ensures environment gets sourced right | |
shell: bash -l {0} | |
strategy: | |
matrix: | |
PYTHON_VERISON: ["3.10"] | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
# setup conda-forge with micromamba | |
- name: Setup Python | |
uses: mamba-org/setup-micromamba@v2 | |
with: | |
environment-file: continuous_integration/environment_documentation.yml | |
create-args: >- | |
python=${{ matrix.PYTHON_VERISON }} | |
environment-name: docs | |
cache-environment: true | |
- name: 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: | | |
set -e | |
python -m pip install . --no-deps | |
cd docs | |
make html | |
- name: Deploy 🚀 | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: docs # The folder the action should deploy. | |
CLEAN: true # Automatically remove deleted files from the deploy branch |