new_blog/.github/workflows/build_and_gh_pages.yml
Pagwin e182c498c5
Some checks are pending
/ Generate Site (push) Waiting to run
/ Publish Site (push) Blocked by required conditions
change over to new version of psb
2025-12-13 18:55:41 -05:00

35 lines
904 B
YAML

on: [push]
jobs:
build_site:
name: Generate Site
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Build files
uses: Pagwin2/psb@v2
- name: Upload site as artifact
# needed for the url thingy later
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: publish/
deploy_site:
name: Publish Site
needs: build_site
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Publish to Github pages
uses: actions/deploy-pages@v4