Skip to content

added permissions

added permissions #27

name: Build and Deploy
on:
push:
branches:
- main
- testing-github-pages
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository 🛎️
uses: actions/checkout@v3
- name: Set up Python 3.10 🐍
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Node.js 18 📦
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Setup Bun 🍞
uses: oven-sh/setup-bun@v1
with:
bun-version: "0.6.9"
- name: Install dependencies 📦
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Initialize Reflex 📦
run: reflex init
- name: Build the website 🚧
run: |
reflex export --no-zip --frontend-only
- name: Upload frontend build 📦
uses: actions/upload-artifact@v3
with:
name: frontend
path: .web/_static/
if-no-files-found: error
retention-days: 1
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout the repository 🛎️
uses: actions/checkout@v3
- name: Download website build 📦
uses: actions/download-artifact@v3
with:
name: frontend
path: frontend/
- name: Deploy to GitHub Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: frontend/
permissions:

Check failure on line 70 in .github/workflows/build-and-deploy.yaml

View workflow run for this annotation

GitHub Actions / Build and Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-deploy.yaml (Line: 70, Col: 9): Unexpected value 'permissions'
contents: write