From 16276d1a6ed885645e293b62a980f1b7444d33e5 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sat, 19 Feb 2022 04:00:56 +1100 Subject: [PATCH] chore(workflow): Update release.yml --- .github/workflows/release.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c0f5041..1993185 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Release on: push: tags: - - "v*" + - 'v*' jobs: create-release: @@ -19,28 +19,34 @@ jobs: with: fetch-depth: 0 ref: ${{ github.ref }} - + - name: Set env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - 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 - cd ./temp && zip -r ../oxmysql-${{ env.RELEASE_VERSION }}.zip ./oxmysql + cp -r ./ui/build ./temp/oxmysql/ui/ + cd ./temp && zip -r ../oxmysql.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 }}" + repo_token: '${{ secrets.GITHUB_TOKEN }}' title: ${{ env.RELEASE_VERSION }} prerelease: false files: oxmysql-${{ env.RELEASE_VERSION }}.zip