mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fix(ci/cd): Github yaml syntax sucks
This commit is contained in:
1 parent
eaa0c97cde
commit
f0bb41ac5f
1 file changed
+5
-8
@@ -19,10 +19,7 @@ jobs:
|
|||||||
- name: Set Env
|
- name: Set Env
|
||||||
id: commit_info
|
id: commit_info
|
||||||
run: |
|
run: |
|
||||||
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
|
echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
||||||
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'
|
||||||
@@ -49,13 +46,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-$SOURCE_TAG.tar.gz resources/dist/ resources/html/ fxmanifest.lua config.json LICENSE
|
run: tar -czf npwd-${{env.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: 'Release ${{SOURCE_TAG}}'
|
automatic_release_tag: 'Release ${{env.SOURCE_TAG}}'
|
||||||
prerelease: false
|
prerelease: false
|
||||||
title: 'v${{ SOURCE_TAG }} - New Phone Who Dis'
|
title: 'v${{ env.SOURCE_TAG }} - New Phone Who Dis'
|
||||||
files: npwd-$SOURCE_TAG.tar.gz
|
files: npwd-${{env.SOURCE_TAG}}.tar.gz
|
||||||
Reference in new issue
Block a user