Merge pull request #129 from FUEL4EP/FUEL4EP_patch_12 #91
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: push | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-22.04 | |
steps: | |
# GIT Checkout | |
- uses: actions/checkout@v2 | |
# Cache node_modules | |
- uses: actions/[email protected] | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: ${{ runner.os }}-node- | |
# Setup Node.JS | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '21' | |
# Build | |
- run: npm ci | |
- run: npm run build | |
# Deploy | |
- name: Deploy 🚀 | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/master' | |
with: | |
publish_dir: .vuepress/dist/ | |
deploy_key: ${{ secrets.GH_PAGES_DEPLO_KEY }} | |
external_repository: AskSinPP/asksinpp.github.io |