From f0bb41ac5f896d1ba98a402eff5df2fe359be630 Mon Sep 17 00:00:00 2001 From: Taso Date: Thu, 4 Mar 2021 16:45:53 -0500 Subject: [PATCH] fix(ci/cd): Github yaml syntax sucks --- .github/workflows/release.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b02271..54d980a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,10 +19,7 @@ jobs: - name: Set Env id: commit_info run: | - echo ::set-output name=tag::${GITHUB_REF#refs/tags/} - echo Deploying Version: $SOURCE_TAG - env: - SOURCE_TAG: ${{ steps.commit_info.outputs.tag }} + echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - uses: actions/setup-node@v2 with: node-version: '14' @@ -49,13 +46,13 @@ jobs: cd resources && yarn build cd ../phone && yarn build - 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 if: ${{ !env.ACT }} uses: "marvinpinto/action-automatic-releases@latest" with: repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: 'Release ${{SOURCE_TAG}}' + automatic_release_tag: 'Release ${{env.SOURCE_TAG}}' prerelease: false - title: 'v${{ SOURCE_TAG }} - New Phone Who Dis' - files: npwd-$SOURCE_TAG.tar.gz + title: 'v${{ env.SOURCE_TAG }} - New Phone Who Dis' + files: npwd-${{env.SOURCE_TAG}}.tar.gz