update apptainer install and usage #270 #373
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: Build and Deploy | |
on: | |
push: | |
repository_dispatch: | |
types: | |
- toolbox-update-trigger | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: self-ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
# - uses: actions/setup-python@v4 | |
# with: | |
# python-version: '3.10' | |
# cache: 'pip' # caching pip dependencies | |
- name: Python install | |
run: | | |
python -m venv --system-site-packages .venv | |
source .venv/bin/activate | |
pip install -r requirements.txt | |
- name: Npm Install | |
run: | | |
npm i | |
echo "${{ github.workspace }}/node_modules/.bin" >> $GITHUB_PATH | |
- name: Check | |
run: | | |
antora -v | |
asciidoctor -v | |
- name: Build | |
run: | | |
source .venv/bin/activate | |
npm run antora | |
env: | |
FEELPP_GITHUB_TOKEN: ${{ secrets.DOCS_GITHUB_KEY }} | |
GITHUB_OAUTH: ${{ secrets.DOCS_GITHUB_KEY }} | |
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }} | |
ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME }} | |
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }} | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages # The branch the action should deploy to. | |
folder: build/site # The folder the action should deploy. |