Skip to content

Commit

Permalink
Updated npm-gulp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nashidahmed committed Nov 10, 2023
1 parent 622adb2 commit b62d557
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/npm-gulp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ jobs:
- name: Build with Gulp
run: npx gulp

- name: Stash dist folder
run: |
git stash push -- dist
- name: Archive dist folder
uses: actions/upload-artifact@v3
with:
name: dist
path: dist

deploy:
runs-on: ubuntu-latest
Expand All @@ -39,8 +41,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Apply stashed changes
run: git stash apply
- name: Download dist folder
uses: actions/download-artifact@v2
with:
name: dist
path: dist

- name: List files
run: ls -R

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit b62d557

Please sign in to comment.