Skip to content

Commit f425031

Browse files
author
Daveed
committed
fixed build github action
1 parent a494ec7 commit f425031

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,17 @@ jobs:
3535
- name: Build
3636
run: npm run build
3737

38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
name: github-pages-${{ github.run_id }}
42+
path: ./build
43+
retention-days: 1
3844

3945
deploy:
4046
needs: build
4147
runs-on: ubuntu-latest
48+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
4249
environment:
4350
name: github-pages
4451
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)