Skip to content

Commit

Permalink
fix: Update the proper pre-release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Feb 14, 2022
1 parent e297167 commit 4e099e8
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Pre-Release

on:
on:
workflow_dispatch:
inputs:
tag:
Expand All @@ -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:
Expand Down

0 comments on commit 4e099e8

Please sign in to comment.