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:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
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-03-01 07:11:42 +00:00
|
|
|
uses: actions/setup-python@v3
|
2021-04-30 21:36:56 +00:00
|
|
|
with:
|
|
|
|
python-version: 3.9
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
pip install git+https://github.com/spanezz/staticsite.git@v1.2
|
|
|
|
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'
|