Skip to content

Commit

Permalink
Update Release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Grabt234 authored Mar 3, 2024
1 parent 685721b commit 8e280d3
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 8e280d3

Please sign in to comment.