Skip to content

Commit

Permalink
Create workflow generate-site.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
malywut authored Dec 6, 2024
1 parent d87f483 commit 79a8119
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/generate-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Generate Resources Site

on:
push:
branches: [ main ]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyyaml jinja2
- name: Generate HTML
run: python generate_site.py

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './dist'

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@v2

0 comments on commit 79a8119

Please sign in to comment.