Skip to content

fix: include script.lua in build #14

fix: include script.lua in build

fix: include script.lua in build #14

Workflow file for this run

name: Build on Tag
on:
push:
tags:
- '*'
jobs:
build-on-tag:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Node.js and Yarn
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Build
run: |
cd code
yarn install
yarn build
- name: Copy files
run: |
mkdir -p bcl-runcode
cp -r build bcl-runcode/build
cp fxmanifest.production.lua bcl-runcode/fxmanifest.lua
cp run.lua bcl-runcode/run.lua
cp script.lua bcl-runcode/script.lua
zip -r ${{ github.event.repository.name }}.zip bcl-runcode
tar -czf ${{ github.event.repository.name }}.tar.gz bcl-runcode
- name: Create Release
uses: 'marvinpinto/[email protected]'
id: auto_release
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
title: '${{ env.RELEASE_VERSION }}'
prerelease: false
files: |
${{ github.event.repository.name }}.zip
${{ github.event.repository.name }}.tar.gz
env:
CI: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}