Skip to content

fix: enable workflow #2

fix: enable workflow

fix: enable workflow #2

Workflow file for this run

name: Deploy Website
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# Check out the code
- name: Checkout code
uses: actions/checkout@v3
# Set up Node.js environment
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
# Install dependencies
- name: Install dependencies
run: |
npm install
npm install -g hexo-cli
npm install hexo-theme-stellar
npm audit fix
# Generate static files
- name: Generate static files
run: hexo generate
# Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public