Merge pull request #569 from ACCESS-Hive/workshop #154
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 Development Website | |
on: | |
push: | |
branches: | |
- development | |
concurrency: | |
group: development | |
cancel-in-progress: true | |
jobs: | |
build-development: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Build | |
# builds to "site" directory by default | |
run: | | |
mkdocs build -f mkdocs.yml -d site | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: development | |
path: development/ | |
- name: Save built site | |
run: | | |
mkdir -p ./development_site | |
mv site ./development_site/. | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: development_site | |
path: development_site/ | |