tweaks(ci-cd): Build release changes

This commit is contained in:
Taso committed 2021-04-01 14:12:37 -04:00
1 parent c678ab101e
commit eaa0c97cde
1 file changed
+10 -16
+10 -16
View File
@@ -17,16 +17,15 @@ jobs:
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: Set Env - name: Set Env
id: vars id: commit_info
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} run: |
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
echo Deploying Version: $SOURCE_TAG
env:
SOURCE_TAG: ${{ steps.commit_info.outputs.tag }}
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: '14' node-version: '14'
# Probably don't need to do this but yarn wasn't
# wasn't working locally.
- run: npm i --global yarn
- name: Find Yarn Cache Dir - name: Find Yarn Cache Dir
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)"
@@ -50,18 +49,13 @@ jobs:
cd resources && yarn build cd resources && yarn build
cd ../phone && yarn build cd ../phone && yarn build
- name: Compressing built files - name: Compressing built files
run: tar -czf npwd-$RELEASE_VERSION.tar.gz resources/dist/ resources/html/ fxmanifest.lua config.json LICENSE run: tar -czf npwd-$SOURCE_TAG.tar.gz resources/dist/ resources/html/ fxmanifest.lua config.json LICENSE
- name: Create and deploy GitHub release - name: Create and deploy GitHub release
if: ${{ !env.ACT }} if: ${{ !env.ACT }}
uses: "marvinpinto/action-automatic-releases@latest" uses: "marvinpinto/action-automatic-releases@latest"
with: with:
repo_token: "${{ secrets.GITHUB_TOKEN }}" repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest" automatic_release_tag: 'Release ${{SOURCE_TAG}}'
prerelease: false prerelease: false
title: 'v${{ steps.vars.outputs.tag }} of NPWD' title: 'v${{ SOURCE_TAG }} - New Phone Who Dis'
files: npwd-$RELEASE_VERSION.tar.gz files: npwd-$SOURCE_TAG.tar.gz
- name: Version Info
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: |
echo Release Version Deployed: $RELEASE_VERSION