diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index c00323f..7eed009 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -3,7 +3,9 @@ name: Build Svelte App on Release on: release: types: [published] - +env: + BUILD_NAME: Sensor_Viewer + jobs: build: name: Build Svelte App @@ -23,4 +25,16 @@ jobs: - name: Build Svelte app run: npm run build + + - name: Zip Docs and Build + run: | + cd .svelte-kit + sudo zip -r ${{env.BUILD_NAME}}.zip ./* + - name: Upload to Release + uses: softprops/action-gh-release@v1 + with: + files: | + ./${{env.BUILD_NAME}}.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}