Skip to content

[#2257] Inject Environment Variable for Github Pages Deployments in Vite Build #9

[#2257] Inject Environment Variable for Github Pages Deployments in Vite Build

[#2257] Inject Environment Variable for Github Pages Deployments in Vite Build #9

Workflow file for this run

name: CI
on:
push:
branches:
- master
# For scheduled deployment with Cron Jobs.
## Examples of cron schedule expressions:
### '0 * * * *': hourly
### '0 0 * * *': daily
### '0 0 1 * *': monthly
# schedule:
# - cron: '0 0 * * *'
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: pip install requests
- name: Generate report
env:
VITE_BASE_DIR: "/$(basename $GITHUB_REPOSITORY)/"
run: bash -c "echo 'VITE_BASE_DIR: $VITE_BASE_DIR' && ./run.sh"

Check failure on line 26 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 26
- name: Deploy GitHub pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./reposense-report
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: Rebuild pages at