2022-04-16 02:06:51 +00:00
|
|
|
---
|
2021-04-30 21:36:56 +00:00
|
|
|
name: GitHub Pages
|
|
|
|
|
|
|
|
on:
|
2021-05-01 12:10:48 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2024-05-13 22:16:18 +00:00
|
|
|
workflow_dispatch:
|
2021-04-30 21:36:56 +00:00
|
|
|
|
2021-05-10 20:17:00 +00:00
|
|
|
permissions:
|
2024-05-13 22:16:18 +00:00
|
|
|
contents: read
|
|
|
|
pages: write
|
|
|
|
id-token: write
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: "pages"
|
|
|
|
cancel-in-progress: false
|
2021-05-10 20:17:00 +00:00
|
|
|
|
2021-04-30 21:36:56 +00:00
|
|
|
jobs:
|
2024-05-13 22:16:18 +00:00
|
|
|
build:
|
2022-04-16 02:06:51 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-04-30 21:36:56 +00:00
|
|
|
steps:
|
2023-09-05 07:10:11 +00:00
|
|
|
- uses: actions/checkout@v4
|
2021-04-30 21:36:56 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 10
|
|
|
|
|
|
|
|
- name: Set up Python
|
2023-12-07 07:42:43 +00:00
|
|
|
uses: actions/setup-python@v5
|
2021-04-30 21:36:56 +00:00
|
|
|
with:
|
2023-10-26 23:38:58 +00:00
|
|
|
python-version: '3.12'
|
2021-04-30 21:36:56 +00:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2022-04-16 02:06:51 +00:00
|
|
|
sudo apt-get --yes install --no-install-recommends libimage-exiftool-perl
|
2022-11-12 10:00:09 +00:00
|
|
|
pip install wheel
|
2023-06-01 21:30:59 +00:00
|
|
|
pip install git+https://github.com/spanezz/staticsite.git@v2.3
|
2021-04-30 21:36:56 +00:00
|
|
|
ssite build --output public
|
2024-05-13 22:16:18 +00:00
|
|
|
cd public
|
|
|
|
rm -rf Jenkinsfile dosagelib scripts tests
|
2021-04-30 21:36:56 +00:00
|
|
|
|
2024-05-13 22:16:18 +00:00
|
|
|
- name: Setup Pages
|
|
|
|
id: pages
|
|
|
|
uses: actions/configure-pages@v5
|
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-pages-artifact@v3
|
2021-04-30 21:36:56 +00:00
|
|
|
with:
|
2024-05-13 22:16:18 +00:00
|
|
|
path: public
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
environment:
|
|
|
|
name: github-pages
|
|
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: build
|
|
|
|
steps:
|
|
|
|
- name: Deploy to GitHub Pages
|
|
|
|
id: deployment
|
|
|
|
uses: actions/deploy-pages@v4
|