Skip to content

Commit a722bec

Browse files
committed
Merge remote-tracking branch 'origin/trunk' into trunk
2 parents 0c4ad39 + 53c0d60 commit a722bec

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches: 'trunk'
66

7+
env:
8+
ARTIFACT_DIR: "build"
9+
BASE_PATH: '/scrapbox-planetarium'
10+
711
jobs:
812
build_site:
913
runs-on: ubuntu-latest
@@ -40,16 +44,16 @@ jobs:
4044

4145
- name: build
4246
env:
43-
BASE_PATH: '/scrapbox-planetarium'
47+
BASE_PATH: ${{ env.BASE_PATH }}
4448
run: |
4549
pnpm run build
46-
touch build/.nojekyll
50+
touch $ARTIFACT_DIR/.nojekyll
4751
4852
- name: Upload Artifacts
4953
uses: actions/upload-pages-artifact@v1
5054
with:
5155
# this should match the `pages` option in your adapter-static options
52-
path: 'build/'
56+
path: ${{ env.ARTIFACT_DIR }}/
5357

5458
deploy:
5559
needs: build_site

0 commit comments

Comments
 (0)