Update onPosition.lua #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
create-release: | |
name: Build Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.repository.default_branch }} | |
- name: Set env | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Install dependencies for InteractionDUI | |
run: | | |
cd interactionDUI/dui_source | |
npm install | |
- name: Build Vue app for InteractionDUI | |
run: | | |
cd interactionDUI/dui_source | |
npm run build | |
- name: Bundle files | |
run: | | |
mkdir -p ./temp/interactionMenu | |
mkdir -p ./temp/interactionDUI | |
mkdir -p ./temp/interactionRenderer | |
cp -r ./interactionDUI/dui ./temp/interactionDUI/ | |
cp ./interactionDUI/fxmanifest.lua ./temp/interactionDUI | |
cp ./interactionDUI/core.client.lua ./temp/interactionDUI | |
cp -r ./interactionMenu ./temp | |
cp -r ./interactionRenderer ./temp | |
- name: Zip files | |
run: | | |
cd ./temp && zip -r ../interactionMenu.zip ./ | |
- name: Create Release | |
uses: "marvinpinto/[email protected]" | |
id: auto_release | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
title: ${{ env.RELEASE_VERSION }} | |
prerelease: false | |
files: interactionMenu.zip | |
env: | |
CI: false | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |