Skip to content

refactor: tooltip filename now using query strings #126

refactor: tooltip filename now using query strings

refactor: tooltip filename now using query strings #126

Workflow file for this run

name: Push
on:
push:
branches:
- 'main_v2'
workflow_dispatch:
repository_dispatch:
types: [ost-data-parser-push-direct]
# 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.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v5
with:
# Locally running version, usable
python-version: '3.10'
- name: Install necessary Python packages
run: |
pip install -r requirements.txt
- name: Update submodules
run: |
git submodule update --remote
# Parser part
- name: Init encironment for Parser
run: bash push_init.sh
- name: Run Parser's main.py
run: |
cd data_parser
python main.py
cd ..
# Generator part
- name: Run generator's custom prechecking
run: python prechecker.py
- name: Run generator's main.py
run: python main_prod.py
# Deployment
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
# Upload entire repository
path: './data_html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: CloudFlare Page Purge
uses: jakejarvis/cloudflare-purge-action@master
env:
CLOUDFLARE_ZONE: ${{ secrets.CF_PURGE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CF_TOKEN }}
- name: Invalidate CloudFront
uses: chetan/invalidate-cloudfront-action@v2
env:
DISTRIBUTION: ${{ secrets.AWS_CF_DISTRIBUTION }}
PATHS: "/*"
AWS_REGION: "us-east-1"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}