Skip to content

fix: lock file

fix: lock file #16

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
# add webhook
repository_dispatch:
types:
- webhook
push:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Self Repo
uses: actions/checkout@v4
with:
submodules: 'true'
ssh-key: ${{ secrets.SSH_KEY }}
- uses: pnpm/action-setup@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install Dependencies
run: pnpm i
- name: Sync Articles
working-directory: blog-archived
run: pnpm sync
- name: Build Site
working-directory: blog-archived
run: pnpm build
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: blog-archived/dist
production-branch: master
# github-token: ${{ secrets.PERSONAL_TOKEN }}
deploy-message: Deploy from GitHub Actions
enable-pull-request-comment: false
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}