Skip to content

Export WebApp [ Hackweek ] #20

Export WebApp [ Hackweek ]

Export WebApp [ Hackweek ] #20

Workflow file for this run

name: Export WebApp [ Hackweek ]
on:
workflow_dispatch:
inputs:
tag:
type: input
description: 'unique tag'
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Build WebApp
run: |
yarn
npx vite build --mode prod
touch build/public/.webapp.ini
echo "defaultConfigSource=${{ github.event.inputs.tag }}" > build/public/.webapp.ini
- name: Uploading artifact
if: always()
uses: actions/upload-artifact@v3
with:
name: webapp-${{ github.event.inputs.tag }}
path: ./build
retention-days: 1