Skip to content

add github actions

add github actions #1

Workflow file for this run

name: Auto deploy Hexo site
on:
push:
branches:
- main
jobs:
Build-And-Deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:

Check failure on line 11 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
group: {{ github.workflow }}-{{ github.ref }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install dependencies
run: |
npm install
- name: Build Static Pages
run: |
npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public