2023-05-30 15:49:35 +02:00
|
|
|
name: Deploy static content to Pages
|
2023-05-28 09:53:19 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 8 * * *"
|
2023-05-28 10:04:41 +02:00
|
|
|
push:
|
2023-05-30 15:49:35 +02:00
|
|
|
branches: ["main"]
|
2023-05-28 09:53:19 +02:00
|
|
|
workflow_dispatch:
|
|
|
|
|
2023-05-30 15:49:35 +02:00
|
|
|
permissions:
|
2023-05-31 09:46:32 +02:00
|
|
|
contents: write
|
2023-05-30 15:49:35 +02:00
|
|
|
pages: write
|
|
|
|
id-token: write
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: "pages"
|
|
|
|
cancel-in-progress: false
|
|
|
|
|
2023-05-28 09:53:19 +02:00
|
|
|
jobs:
|
2023-05-30 15:49:35 +02:00
|
|
|
deploy:
|
|
|
|
environment:
|
|
|
|
name: github-pages
|
|
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
2023-05-28 09:53:19 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-05-30 15:49:35 +02:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Pages
|
|
|
|
uses: actions/configure-pages@v3
|
|
|
|
- name: Generate artifact
|
|
|
|
run: |
|
|
|
|
git config --global user.email "heissepreise-pages@gmail.com"
|
|
|
|
git config --global user.name "heissepreise-pages"
|
2023-06-01 19:45:14 +02:00
|
|
|
date
|
2023-05-30 15:49:35 +02:00
|
|
|
./pages.sh
|
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-pages-artifact@v1
|
|
|
|
with:
|
|
|
|
# Upload entire repository
|
|
|
|
path: './docs'
|
|
|
|
- name: Deploy to GitHub Pages
|
|
|
|
id: deployment
|
|
|
|
uses: actions/deploy-pages@v2
|