Skip to content

Publish Svelte App on Release #10

Publish Svelte App on Release

Publish Svelte App on Release #10

Workflow file for this run

name: Build Svelte App on Release
on:
release:
types: [published]
env:
BUILD_NAME: Sensor_Viewer
jobs:
build:
name: Build Svelte App
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '21.6.2' # You can change the Node.js version as needed
- name: Install dependencies
run: npm install
- name: Zip Docs and Build
run: |
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 }}