Skip to content

rebuild-registry

rebuild-registry #283

Workflow file for this run

name: rebuild-registry
on:
workflow_dispatch:
push:
branches: ["gh-pages"]
schedule:
- cron: "30 23 * * *"
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build registry
id: build
run: python code.py
- name: Deploy πŸš€
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: .
- name: Repository Dispatch
if: steps.build.outcome == 'success'
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PAT }}
repository: getwilds/getwilds.github.io
event-type: registry-updated
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4