Skip to content

Commit

Permalink
Prepend env. to environment variables
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
  • Loading branch information
rak-phillip committed Feb 9, 2022
1 parent dcf9560 commit 53d6b6d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release-rancher-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ jobs:

- name: Install & Build
run: |
mkdir ${{ RELEASE_DIR }}
mkdir ${{ env.RELEASE_DIR }}
yarn install --frozen-lockfile
NUXT_ENV_commit=${{ GITHUB_SHA} } NUXT_ENV_version=${{ GITHUB_REF_NAME }} OUTPUT_DIR=${{ OUTPUT_DIR }}/${{ ARTIFACT_NAME }} ROUTER_BASE='/dashboard' RANCHER_ENV=desktop yarn run build --spa
tar -czf ${{ RELEASE_DIR }}/${{ ARTIFACT_NAME }}.tar.gz ${{ OUTPUT_DIR }}/${{ ARTIFACT_NAME }}
sha512sum ${{ RELEASE_DIR }}/${{ ARTIFACT_NAME }}.tar.gz > ${{ RELEASE_DIR }}/${{ ARTIFACT_NAME }}.tar.gz.sha512sum
NUXT_ENV_commit=${{ GITHUB_SHA} } NUXT_ENV_version=${{ GITHUB_REF_NAME }} OUTPUT_DIR=${{ env.OUTPUT_DIR }}/${{ env.ARTIFACT_NAME }} ROUTER_BASE='/dashboard' RANCHER_ENV=desktop yarn run build --spa
tar -czf ${{ env.RELEASE_DIR }}/${{ env.ARTIFACT_NAME }}.tar.gz ${{ env.OUTPUT_DIR }}/${{ env.ARTIFACT_NAME }}
sha512sum ${{ env.RELEASE_DIR }}/${{ env.ARTIFACT_NAME }}.tar.gz > ${{ env.RELEASE_DIR }}/${{ env.ARTIFACT_NAME }}.tar.gz.sha512sum
- name: Upload Build
uses: actions/upload-artifact@v2
with:
path: ${{ OUTPUT_DIR }}/${{ ARTIFACT_NAME }}
name: ${{ ARTIFACT_NAME }}
path: ${{ env.OUTPUT_DIR }}/${{ env.ARTIFACT_NAME }}
name: ${{ env.ARTIFACT_NAME }}
if-no-files-found: error

- name: Upload Assets
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ RELEASE_DIR }}/*
file: ${{ env.RELEASE_DIR }}/*
tag: ${{ github.ref }}
file_glob: true

0 comments on commit 53d6b6d

Please sign in to comment.