mirror of
https://github.com/quatalog/quatalog.git
synced 2024-11-17 20:42:45 +00:00
Merge branch 'main' of https://github.com/quatalog/quatalog-scraping
This commit is contained in:
commit
3721094591
34
.github/workflows/scraper.yml
vendored
34
.github/workflows/scraper.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Update data and generate static site
|
||||
name: Update data, generate static site, and deploy to Pages
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
|
@ -118,3 +118,35 @@ jobs:
|
|||
git add courses
|
||||
git commit -m "$(date)" || exit 0
|
||||
git push
|
||||
|
||||
deploy-static-site:
|
||||
name: Deploy static site to Github Pages
|
||||
runs-on: ubuntu-latest
|
||||
needs: [generate-site]
|
||||
permissions:
|
||||
pages: write
|
||||
id-token: write
|
||||
concurrency:
|
||||
group: "pages"
|
||||
cancel-in-progress: true
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
steps:
|
||||
- name: Checkout static-generated branch
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: quatalog/site
|
||||
ref: static-generated
|
||||
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v3
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
path: '.'
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v1
|
||||
|
|
BIN
bin/GenerateHtml
BIN
bin/GenerateHtml
Binary file not shown.
Loading…
Reference in a new issue