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 name: Pre-Release
on: on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
tag: tag:
@@ -22,27 +22,33 @@ jobs:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.ref }} ref: ${{ github.ref }}
- name: Install dependencies - name: Install root dependencies
run: yarn run: yarn
- name: Install ui dependencies
run: yarn
working-directory: ui
- name: Run build - name: Run build
run: yarn build run: yarn build
- name: Bundle files - name: Bundle files
run: | run: |
mkdir -p ./temp/oxmysql 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 ./{lib,dist} ./temp/oxmysql
cp -r ./ui/build ./temp/oxmysql/ui/
cd ./temp && zip -r ../oxmysql-${{ github.event.inputs.tag }}.zip ./oxmysql cd ./temp && zip -r ../oxmysql-${{ github.event.inputs.tag }}.zip ./oxmysql
- name: Create Release - name: Create Release
uses: "marvinpinto/[email protected]" uses: 'marvinpinto/[email protected]'
id: auto_release id: auto_release
with: with:
repo_token: "${{ secrets.GITHUB_TOKEN }}" repo_token: '${{ secrets.GITHUB_TOKEN }}'
title: "Experimental - ${{ github.event.inputs.tag }} (FOR TESTING PURPOSE)" title: 'Experimental - ${{ github.event.inputs.tag }} (FOR TESTING PURPOSE)'
prerelease: true prerelease: true
automatic_release_tag: "${{ github.event.inputs.tag }}" automatic_release_tag: '${{ github.event.inputs.tag }}'
files: oxmysql-${{ github.event.inputs.tag }}.zip files: oxmysql-${{ github.event.inputs.tag }}.zip
env: env: