Revert "fix: Update pre-release workflow"

This reverts commit 88fe6fa14c.
This commit is contained in:
Luke committed 2022-02-14 15:31:32 +01:00
1 parent 88fe6fa14c
commit e297167ae3
1 file changed
+5 -10
+5 -10
View File
@@ -3,7 +3,7 @@ name: Release
on: on:
push: push:
tags: tags:
- 'v*' - "v*"
jobs: jobs:
create-release: create-release:
@@ -19,17 +19,13 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.ref }} ref: ${{ github.ref }}
- 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 root dependencies - name: Install 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
@@ -38,14 +34,13 @@ jobs:
mkdir -p ./temp/oxmysql mkdir -p ./temp/oxmysql
cp ./{LICENSE,README.md,fxmanifest.lua} ./temp/oxmysql cp ./{LICENSE,README.md,fxmanifest.lua} ./temp/oxmysql
cp -r ./{lib,dist} ./temp/oxmysql cp -r ./{lib,dist} ./temp/oxmysql
cp -r ./ui/{build} ./temp/oxmysql
cd ./temp && zip -r ../oxmysql-${{ env.RELEASE_VERSION }}.zip ./oxmysql cd ./temp && zip -r ../oxmysql-${{ env.RELEASE_VERSION }}.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