Skip to content

Commit

Permalink
github.workspace #4
Browse files Browse the repository at this point in the history
  • Loading branch information
utgarda committed Oct 9, 2023
1 parent ba35ddc commit b2b4e0f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ jobs:
node-version: '18'

- name: Install dependencies
working-directory: ${{ vars.GITHUB_WORKSPACE }}/frontend
working-directory: ${{ github.workspace }}/frontend
run: yarn install --frozen-lockfile

- name: Build with Vite
working-directory: ${{ vars.GITHUB_WORKSPACE }}/frontend
working-directory: ${{ github.workspace }}/frontend
run: yarn build

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

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

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

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

0 comments on commit b2b4e0f

Please sign in to comment.