diff --git a/.github/workflows/build-ui.yml b/.github/workflows/build-ui.yml index 19bd19a..6effbac 100644 --- a/.github/workflows/build-ui.yml +++ b/.github/workflows/build-ui.yml @@ -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 }} @@ -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