Skip to content

Merge pull request #29 from PlexSheep/release-please--branches--master #29

Merge pull request #29 from PlexSheep/release-please--branches--master

Merge pull request #29 from PlexSheep/release-please--branches--master #29

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: ["master"] # or your default branch
workflow_dispatch: # allows manual trigger
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Poetry
run: pip install poetry
- name: Install dependencies
run: poetry install
- name: Download dictionaries
run: poetry run sennen download
- name: Generate site
run: poetry run sennen generate
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "data/site" # Your built site directory
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4