Skip to content

.github/workflows/pages.yml #5

.github/workflows/pages.yml

.github/workflows/pages.yml #5

Workflow file for this run

on:
workflow_dispatch:
schedule:
- cron: "10 12 * * 0"
push:
branches:
- main
jobs:
build-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Generate index files
run: ./index-files.sh
- name: Move files to web folder
run: |
rm index-files.sh
mkdir web
ls | grep -v web | xargs mv -t web
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v2
with:
path: "web"
deploy:
needs: build-pages
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v2