From 4e099e8e0f064235e72faa919d6d22ffd37db653 Mon Sep 17 00:00:00 2001 From: Luke Date: Mon, 14 Feb 2022 15:31:58 +0100 Subject: [PATCH] fix: Update the proper pre-release workflow --- .github/workflows/pre-release.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 595496b..6fa438c 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -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/action-automatic-releases@v1.2.1" + uses: 'marvinpinto/action-automatic-releases@v1.2.1' 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: