Skip to content

Commit

Permalink
Separate CI & CD Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Xilophor committed Jan 18, 2024
1 parent 1b6e064 commit 1c2e4eb
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Wiki CI
on:
pull_request:
branches:
- main

env:
NODE_VERSION: 18.x

jobs:
deploy:
name: Deploy
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Install packages
run: npm ci
- name: Build
run: npm run build
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v1
with:
path: docs/.vitepress/dist
5 changes: 1 addition & 4 deletions .github/workflows/wiki.yml → .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Wiki CI
name: Wiki CD
on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches-ignore:
- cwdin-backups
Expand Down

0 comments on commit 1c2e4eb

Please sign in to comment.