Skip to content

Externalize secrets and add tehm to workflow #7

Externalize secrets and add tehm to workflow

Externalize secrets and add tehm to workflow #7

Workflow file for this run

# Build the site and deploy it to GitHub pages
name: Build
on: # yamllint disable-line rule:truthy
push:
branches:
- master
- main
- '*.*'
- 'staging*'
pull_request:
branches:
- master
- main
- '*.*'
- 'staging*'
permissions:
contents: write
jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Install dependencies and set environment variables
env:
NODE_ENV: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.event_name == 'push' && 'production' }}
shell: bash
run: ./ci/install.sh
- name: Build site
shell: bash
run: ./ci/build.sh
env:
VITE_GITHUB_TOKEN: ${{ VITE_GITHUB_TOKEN }}

Check failure on line 45 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yaml (Line: 45, Col: 28): Unrecognized named-value: 'VITE_GITHUB_TOKEN'. Located at position 1 within expression: VITE_GITHUB_TOKEN
- name: Deploy to GitHub Pages
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.event_name == 'push'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./build