Skip to content

Commit

Permalink
use GITHUB_WORKSPACE explicit #4
Browse files Browse the repository at this point in the history
  • Loading branch information
utgarda committed Oct 9, 2023
1 parent 2c040fa commit bc5dd38
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ on:
branches:
- "main"

defaults:
run:
working-directory: ./frontend

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -34,14 +30,14 @@ jobs:

- name: Put Git tag and time to .env file
run: |
echo VITE_REACT_APP_GIT_TAG=${{ github.ref_name }} > ./dist/.env
echo VITE_REACT_APP_GIT_DATE="$(date +'%Y-%m-%d')" >> ./dist/.env
echo VITE_REACT_APP_GIT_TAG=${{ github.ref_name }} > ${{ vars.GITHUB_WORKSPACE }}/dist/.env
echo VITE_REACT_APP_GIT_DATE="$(date +'%Y-%m-%d')" >> ${{ vars.GITHUB_WORKSPACE }}/dist/.env
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: ethonline-2023-build-${{ github.run_id }}
path: ./frontend/dist/
path: ${{ vars.GITHUB_WORKSPACE }}/frontend/dist/

deploy:
name: Deploy
Expand All @@ -57,7 +53,7 @@ jobs:
- run: ls -l

- name: Compress Build Artifact
run: tar -czf profitpals-dist-${{ github.run_id }}.tgz ./frontend/dist
run: tar -czf profitpals-dist-${{ github.run_id }}.tgz ${{ vars.GITHUB_WORKSPACE }}/frontend/dist

- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
Expand Down

0 comments on commit bc5dd38

Please sign in to comment.