Skip to content

Commit

Permalink
workflow:: fix build-ui.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
milairhu committed Sep 27, 2024
1 parent 43ae0d5 commit 08b97f2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
node_modules/.bin/gulp bundle
- name: bundle-dev - Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-release-asset@v1
if: github.ref != 'refs/heads/master'
with:
upload_url: ${{ env.GITHUB_RELEASE_URL }}
Expand All @@ -84,10 +84,16 @@ jobs:
npm install --quiet --no-progress --cache=.cache/npm
node_modules/.bin/gulp preview:build
rm -rf public/_/{helpers,layouts,partials}
sudo apt install zip -y
zip -r public.zip public
- name: Convert public directory to zip
run: zip -r public.zip public

- name: pages - Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ env.GITHUB_RELEASE_URL }}
asset_name: public
asset_path: public
asset_path: public.zip
asset_content_type: application/zip

0 comments on commit 08b97f2

Please sign in to comment.