Skip to content

Commit c8cadb7

Browse files
committed
build: gh pages deploy test
1 parent 77d8709 commit c8cadb7

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

.github/workflows/static.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,21 @@ jobs:
2828
run: |
2929
yarn install --check-cache
3030
yarn run build-main
31-
- name: Get production artifact
32-
uses: actions/upload-artifact@v4
31+
- name: Create .nojekyll file
32+
run: touch ./dist/.nojekyll
33+
- name: Upload artifact
34+
uses: actions/upload-pages-artifact@v3
3335
with:
34-
name: production-build
35-
path: dist
36+
path: './main'
3637
deploy:
3738
environment:
3839
name: github-pages
3940
url: ${{ steps.deployment.outputs.page_url }}
4041
runs-on: ubuntu-latest
4142
needs: build
4243
steps:
43-
- name: Download artifact
44-
uses: actions/download-artifact@v4
45-
with:
46-
name: production-build
4744
- name: Setup Pages
4845
uses: actions/configure-pages@v5
49-
- name: Upload artifact
50-
uses: actions/upload-pages-artifact@v3
51-
with:
52-
path: './dist'
5346
- name: Deploy to GH Pages
5447
id: deployment
5548
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)