Skip to content

Update VuePress and some more packages to fix security issues #25

Update VuePress and some more packages to fix security issues

Update VuePress and some more packages to fix security issues #25

Workflow file for this run

# Script based on following guide:
# https://kaizendorks.github.io/2020/04/16/vuepress-github-actions/
name: Deploy VuePress static site to GitHub pages
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate static vuepress files
uses: actions/setup-node@v1
with:
node-version: '21.x'
- run: npm ci
- run: npm run build
- name: Init new repo in dist folder and commit generated files
run: |
cd docs/.vuepress/dist
echo "libre.solar" > CNAME
git init
git add -A
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m 'deploy'
- name: Force push to destination branch
if: github.ref == 'refs/heads/main'
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: ./docs/.vuepress/dist