Skip to content

revert to using gh-pages to facilitate Plesk hosting #114

revert to using gh-pages to facilitate Plesk hosting

revert to using gh-pages to facilitate Plesk hosting #114

Workflow file for this run

name: Build and deploy webpage
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
inputs:
debug_enabled:
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Build site
run: |
source $CONDA/etc/profile.d/conda.sh;
echo $CONDA/bin >> $GITHUB_PATH;
conda create -n smdopage python=3.11
conda activate smdopage
conda install mamba=1.5.10 -c conda-forge
conda install libmamba -c conda-forge
pip install -r docs/source/requirements.txt
conda --version
mamba --version
empack --version
sphinx-build -M html "docs/source" "docs/build"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v3
# with:
# path: './docs/build/html'
#
# deploy:
# needs: build
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
#
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
#
# - name: Setup Pages
# uses: actions/configure-pages@v5
#
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4