Skip to content

update to vite

update to vite #9

Workflow file for this run

name: Build & Release
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get tag
run: echo ::set-output name=VERSION_TAG::${GITHUB_REF/refs\/tags\//}
id: get_tag
- name: Checkout source code
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: 'yarn'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies & Build
run: yarn --frozen-lockfile && yarn build
- name: Bundle
run: |
mkdir -p ./temp/npwd_services
cp ./{README.md,fxmanifest.lua,config.lua} ./temp/npwd_services
cp -r ./client ./temp/npwd_services
cp -r ./server ./temp/npwd_services
cp -r ./web ./temp/npwd_services
cd ./temp && zip -r ../npwd_services.zip ./npwd_services
- name: Create Release
uses: "marvinpinto/[email protected]"
id: auto_release
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: NPWD Services App | ${{ steps.get_tag.outputs.VERSION_TAG }}
prerelease: false
files: npwd_services.zip
env:
CI: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}