Skip to content

Commit 07f0758

Browse files
committed
Update deploy.yml
1 parent eb463c0 commit 07f0758

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,37 +31,32 @@ jobs:
3131
- name: Install dependencies
3232
run: npm i
3333

34+
- name: Clean previous build
35+
run: rm -rf dist
36+
3437
- name: Generate static site
3538
run: |
3639
npm run build:all
3740
ls -la
38-
env:
39-
NODE_ENV: production
40-
OUTPUT_DIR: ./
41-
42-
- name: Upload build artifact
43-
uses: actions/upload-artifact@v4
44-
with:
45-
name: site-build-files
46-
path: ./
47-
if-no-files-found: error
41+
# Clean development artifacts
42+
rm -rf node_modules
4843
4944
deploy:
5045
needs: build
5146
runs-on: ubuntu-latest
52-
permissions:
53-
pages: write
54-
id-token: write
55-
environment:
56-
name: github-pages
57-
url: ${{ steps.deployment.outputs.page_url }}
5847
steps:
48+
- name: Clean workspace
49+
run: rm -rf *
50+
5951
- name: Download build artifact
6052
uses: actions/download-artifact@v4
6153
with:
6254
name: site-build-files
6355
path: ./
6456

57+
- name: Remove CI files
58+
run: rm -rf .github
59+
6560
- name: Setup Pages
6661
uses: actions/configure-pages@v4
6762

0 commit comments

Comments
 (0)