mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-01 14:38:47 +00:00
fix(ci/pre-release): hopefully fix pre-release build
This commit is contained in:
1 parent
aa294e749e
commit
a87b1afe2a
3 files changed
+17
-9
No files matched your search
@@ -4,7 +4,7 @@ on:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
tagged-release:
|
||||
pre-release-build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
outputs:
|
||||
@@ -18,8 +18,11 @@ jobs:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.ref }}
|
||||
- name: Get variables
|
||||
run: echo ::set-output name=VERSION_TAG::${GITHUB_REF/refs\/tags\//}
|
||||
id: get_vars
|
||||
run: |
|
||||
echo ::set-output name=VERSION_TAG::${GITHUB_REF/refs\/tags\//}
|
||||
echo ::set-output name=SHORT_SHA::$(git rev-parse --short HEAD)"
|
||||
echo ::set-output name=DATE::$(date +'%D')"
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
|
||||
@@ -38,14 +41,19 @@ jobs:
|
||||
run: yarn --frozen-lockfile
|
||||
- name: Run build
|
||||
run: npm run build
|
||||
- name: Create Release
|
||||
- name: Bundle and Zip files
|
||||
run: |
|
||||
mkdir -p ./temp/npwd/resources
|
||||
cp ./{LICENSE,README.md,config.json,import.sql,fxmanifest.lua} ./temp/npwd/
|
||||
cp -r ./resources/{dist,html} ./temp/npwd/resources
|
||||
cd ./temp && zip -r npwd-pre-${{ steps.get_vars.outputs.SHORT_SHA }}.zip ./npwd
|
||||
- name: Create Release & Changelog
|
||||
uses: "marvinpinto/action-automatic-releases@latest"
|
||||
with:
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
title: "Pre-Release Build | ${{ steps.get_vars.outputs.DATE }}"
|
||||
prerelease: true
|
||||
files: |
|
||||
|
||||
id: auto_release
|
||||
|
||||
files: ./temp/npwd-pre-${{ steps.get_vars.outputs.SHORT_SHA }}.zip
|
||||
env:
|
||||
CI: false
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -60,11 +60,11 @@ jobs:
|
||||
echo "Cleaned up"
|
||||
- name: Create Release
|
||||
uses: "marvinpinto/action-automatic-releases@latest"
|
||||
id: auto_release
|
||||
with:
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
prerelease: false
|
||||
files: |
|
||||
"npwd-${{ steps.get_vars.outputs.VERSION_TAG }}"
|
||||
id: auto_release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
"pretty-quick": "^3.1.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "lerna run test && CI=false lerna run build",
|
||||
"build": "lerna run test && lerna run build",
|
||||
"prepare": "husky install",
|
||||
"bootstrap": "lerna bootstrap",
|
||||
"format:staged": "pretty-quick --staged",
|
||||
|
||||
Reference in new issue
Block a user