Skip to content

Commit

Permalink
make deployment dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos committed Aug 21, 2024
1 parent 2247208 commit 524c6c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ jobs:
run: npm ci

- name: Build project
env:
NODE_ENV: ${{ vars.NODE_ENV }} # use the vars to indicate the env that is uesd in the react-config.js to set the base url / folder
run: |
export NODE_ENV='github-pages'
export REPO_NAME="$(echo $GITHUB_REPOSITORY | cut -d'/' -f2)"
export BUILDNUMBER="$(echo $GITHUB_RUN_NUMBER)"
echo "Building in repo [$REPO_NAME] with build number [$BUILDNUMBER] for [$NODE_ENV] environment."
Expand All @@ -60,7 +61,7 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: dist

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 524c6c8

Please sign in to comment.