Skip to content

Include several tests and minor fixes (#4) #4

Include several tests and minor fixes (#4)

Include several tests and minor fixes (#4) #4

Workflow file for this run

name: Build website and deploy 🚀
on:
push:
tags:
- '**'
- 'v[0-9]+.[0-9]+.[0-9]+'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python 🐍
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: pip install -Iv reflex~=0.5.6
- name: Build page 🧱
run: API_URL=https://pymath.ricardoleal20.dev reflex export
- name: Extract page 🔐
run: unzip frontend.zip
- name: Inject page 💉
run: python docs/replace_urls.py
env:
URL: https://pymath.ricardoleal20.dev
- name: Setup Pages 🧱
uses: actions/configure-pages@v5
- name: Upload page 🕊️
uses: actions/upload-pages-artifact@v3
with:
path: '.'
- name: Deploy to GitHub Pages 🚀
id: deployment
uses: actions/deploy-pages@v4