Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Mar 5, 2024
1 parent 46cbb23 commit ae099c6
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Build, Test & Publish

permissions:
contents: write

on:
push:
paths:
Expand Down Expand Up @@ -34,12 +37,16 @@ jobs:
- name: Build
working-directory: ${{env.working-directory}}
run: npm run build
- name: Upload artifact
uses: actions/upload-artifact@v3
#- name: Upload artifact
# uses: actions/upload-artifact@v4
# with:
# # Artifact name
# name: package
# # Directory containing files to upload
# path: ${{env.working-directory}}/dist/
# # Days before delete
# retention-days: 1
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
# Artifact name
name: package
# Directory containing files to upload
path: ${{env.working-directory}}/dist/
# Days before delete
retention-days: 1
folder: src/dist/ # The folder the action should deploy.

0 comments on commit ae099c6

Please sign in to comment.