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
|
2021-04-30 21:36:56 +00:00
|
|
|
|
2021-05-10 20:17:00 +00:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
2021-04-30 21:36:56 +00:00
|
|
|
jobs:
|
|
|
|
deploy:
|
2022-04-16 02:06:51 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-04-30 21:36:56 +00:00
|
|
|
steps:
|
2022-03-02 07:36:48 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-04-30 21:36:56 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 10
|
|
|
|
|
|
|
|
- name: Set up Python
|
2022-06-09 07:09:48 +00:00
|
|
|
uses: actions/setup-python@v4
|
2021-04-30 21:36:56 +00:00
|
|
|
with:
|
2022-11-12 09:33:23 +00:00
|
|
|
python-version: '3.11'
|
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 09:33:23 +00:00
|
|
|
pip install git+https://github.com/spanezz/staticsite.git@a55caca1cd599d343ed454296317edd6e0539926
|
2021-04-30 21:36:56 +00:00
|
|
|
ssite build --output public
|
|
|
|
|
|
|
|
- name: Deploy
|
2021-08-26 20:19:26 +00:00
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
2021-04-30 21:36:56 +00:00
|
|
|
with:
|
|
|
|
cname: dosage.rocks
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
exclude_assets: 'Jenkinsfile,dosagelib,scripts,setup.*,tests,*.ini'
|