mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
name: Pre-Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
description: 'Version tag'
|
|
required: true
|
|
|
|
jobs:
|
|
create-release:
|
|
name: Build and Create Tagged Pre release
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Install archive tools
|
|
run: sudo apt install zip
|
|
|
|
- name: Checkout source code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
ref: ${{ github.ref }}
|
|
|
|
- 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
|
|
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/[email protected]'
|
|
id: auto_release
|
|
with:
|
|
repo_token: '${{ secrets.GITHUB_TOKEN }}'
|
|
title: 'Experimental - ${{ github.event.inputs.tag }} (FOR TESTING PURPOSE)'
|
|
prerelease: true
|
|
automatic_release_tag: '${{ github.event.inputs.tag }}'
|
|
files: oxmysql-${{ github.event.inputs.tag }}.zip
|
|
|
|
env:
|
|
CI: false
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|