add pre/post script support to flux worker #35
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
# Based on https://github.com/actions/starter-workflows/blob/main/pages/static.yml | |
name: Publish docs | |
on: | |
push: | |
branches: [main] | |
# Needed for publishing to Github Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
publish: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: BEE Install | |
run: | | |
sudo apt-get update | |
sudo apt-get install python3 python3-venv curl build-essential \ | |
zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev \ | |
libreadline-dev libffi-dev libbz2-dev libyaml-dev | |
curl -sSL https://install.python-poetry.org | python3 - | |
poetry update | |
poetry install | |
- name: Build Docs | |
run: | | |
poetry run make -C docs/sphinx html | |
- name: Upload | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: docs/sphinx/_build/html | |
- name: Publish | |
id: deployment | |
uses: actions/deploy-pages@v1 |