mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-04 14:38:50 +00:00
chore(workflow): Update release.yml
This commit is contained in:
1 parent
0d64cb8cfe
commit
16276d1a6e
1 file changed
+12
-6
@@ -3,7 +3,7 @@ name: Release
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
create-release:
|
create-release:
|
||||||
@@ -23,24 +23,30 @@ jobs:
|
|||||||
- name: Set env
|
- name: Set env
|
||||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- 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
|
||||||
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
|
- 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: ${{ env.RELEASE_VERSION }}
|
title: ${{ env.RELEASE_VERSION }}
|
||||||
prerelease: false
|
prerelease: false
|
||||||
files: oxmysql-${{ env.RELEASE_VERSION }}.zip
|
files: oxmysql-${{ env.RELEASE_VERSION }}.zip
|
||||||
|
|||||||
Reference in new issue
Block a user