fix: include script.lua in build #14
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: 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 }} |