mirror of
https://github.com/BillyOutlast/metadata-scrapers.git
synced 2026-02-04 03:01:16 +01:00
35 lines
791 B
YAML
35 lines
791 B
YAML
name: Deploy repository to Github Pages
|
|
|
|
on:
|
|
push:
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: '0'
|
|
- run: |
|
|
./build_site.sh _site/${{ github.ref_name }}
|
|
- uses: actions/upload-pages-artifact@v3
|
|
|
|
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@v4 |