Skip to content

fix: gh actions workflow permissions and queries #2

fix: gh actions workflow permissions and queries

fix: gh actions workflow permissions and queries #2

Workflow file for this run

name: Test deployment
on:
pull_request:
branches: [main]
jobs:
generate-page:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
channels: conda-forge
environment-file: environment.yaml
miniforge-version: latest
- name: Generate page
shell: bash -l {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python src/scripts/generate_page.py
python src/scripts/generate_workflow_md.py
test-deploy:
name: Test deployment
runs-on: ubuntu-latest
needs: generate-page
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: 18
cache: npm
- name: Install dependencies
run: npm ci
- name: Test build website
run: npm run build