fix: Update the proper pre-release workflow

This commit is contained in:
Luke committed 2022-02-14 16:32:52 +01:00
1 parent e297167ae3
commit 4e099e8e0f
1 file changed
+13 -7
+13 -7
View File
@@ -1,6 +1,6 @@
name: Pre-Release
on:
on:
workflow_dispatch:
inputs:
tag:
@@ -22,27 +22,33 @@ jobs:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Install dependencies
- name: Install root dependencies
run: yarn
- name: Install ui dependencies
run: yarn
working-directory: ui
- name: Run build
run: yarn build
- name: Bundle files
run: |
mkdir -p ./temp/oxmysql
cp ./{LICENSE,README.md,fxmanifest.lua} ./temp/oxmysql
mkdir -p ./temp/oxmysql/ui/
cp ./{LICENSE,README.md,fxmanifest.lua,ui.lua} ./temp/oxmysql
cp -r ./{lib,dist} ./temp/oxmysql
cp -r ./ui/build ./temp/oxmysql/ui/
cd ./temp && zip -r ../oxmysql-${{ github.event.inputs.tag }}.zip ./oxmysql
- name: Create Release
uses: "marvinpinto/[email protected]"
uses: 'marvinpinto/[email protected]'
id: auto_release
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: "Experimental - ${{ github.event.inputs.tag }} (FOR TESTING PURPOSE)"
repo_token: '${{ secrets.GITHUB_TOKEN }}'
title: 'Experimental - ${{ github.event.inputs.tag }} (FOR TESTING PURPOSE)'
prerelease: true
automatic_release_tag: "${{ github.event.inputs.tag }}"
automatic_release_tag: '${{ github.event.inputs.tag }}'
files: oxmysql-${{ github.event.inputs.tag }}.zip
env: