Skip to content

Commit

Permalink
ci: surge
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon committed Aug 24, 2024
1 parent d9e1e86 commit 940e7f6
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/surge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,28 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: reimu

- name: Checkout external repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: D-Sketon/reimu-playground
path: reimu-playground

- name: Copy files to target directory
run: |
cp -r reimu/* reimu-playground/themes/reimu
cp -r reimu/.git reimu-playground/themes/reimu
cd reimu-playground
- name: Install Node
uses: actions/setup-node@v2
with:
working-directory: reimu-playground
node-version: '18'

- name: Copy this repository to the external repository's directory
run: cp -r ./* reimu-playground/themes/reimu

- name: Change directory to the external repo's root directory
working-directory: reimu-playground
run: |
npm install
hexo generate
Expand Down

0 comments on commit 940e7f6

Please sign in to comment.