Skip to content

chore: upgrade deps #338

chore: upgrade deps

chore: upgrade deps #338

Workflow file for this run

name: Deploy Valaxy site to GitHub Pages
on:
# Runs on pushes targeting the default branch
push:
branches: [valaxy]
# Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
run_install: true
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
cache: pnpm
- name: 🔍 Genereate Algolia
env:
HEXO_ALGOLIA_INDEXING_KEY: ${{ secrets.HEXO_ALGOLIA_INDEXING_KEY }}
run: npm run algolia
- name: 🌌 Build Valaxy Blog
run: npm run build
env:
NODE_OPTIONS: --max-old-space-size=6144
- name: ⏫ Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
deploy:
needs: build
runs-on: ubuntu-latest
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: 🪤 Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1