mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +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:
|
branches:
|
||||||
- master
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
tagged-release:
|
pre-release-build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
@@ -18,8 +18,11 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
- name: Get variables
|
- name: Get variables
|
||||||
run: echo ::set-output name=VERSION_TAG::${GITHUB_REF/refs\/tags\//}
|
|
||||||
id: get_vars
|
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
|
- name: Get yarn cache directory path
|
||||||
id: yarn-cache-dir-path
|
id: yarn-cache-dir-path
|
||||||
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
|
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
|
||||||
@@ -38,14 +41,19 @@ jobs:
|
|||||||
run: yarn --frozen-lockfile
|
run: yarn --frozen-lockfile
|
||||||
- name: Run build
|
- name: Run build
|
||||||
run: npm 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"
|
uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
title: "Pre-Release Build | ${{ steps.get_vars.outputs.DATE }}"
|
||||||
prerelease: true
|
prerelease: true
|
||||||
files: |
|
files: ./temp/npwd-pre-${{ steps.get_vars.outputs.SHORT_SHA }}.zip
|
||||||
|
|
||||||
id: auto_release
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
CI: false
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -60,11 +60,11 @@ jobs:
|
|||||||
echo "Cleaned up"
|
echo "Cleaned up"
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: "marvinpinto/action-automatic-releases@latest"
|
uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
|
id: auto_release
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
prerelease: false
|
prerelease: false
|
||||||
files: |
|
files: |
|
||||||
"npwd-${{ steps.get_vars.outputs.VERSION_TAG }}"
|
"npwd-${{ steps.get_vars.outputs.VERSION_TAG }}"
|
||||||
id: auto_release
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
+1
-1
@@ -14,7 +14,7 @@
|
|||||||
"pretty-quick": "^3.1.0"
|
"pretty-quick": "^3.1.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "lerna run test && CI=false lerna run build",
|
"build": "lerna run test && lerna run build",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"bootstrap": "lerna bootstrap",
|
"bootstrap": "lerna bootstrap",
|
||||||
"format:staged": "pretty-quick --staged",
|
"format:staged": "pretty-quick --staged",
|
||||||
|
|||||||
Reference in new issue
Block a user