-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue #77: uncomment gh-pages deployment
- Loading branch information
1 parent
3db6bc3
commit 2583bf0
Showing
1 changed file
with
44 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
# name: Build and Deploy to GitHub Pages | ||
|
||
# on: | ||
# push: | ||
# pull_request: | ||
|
||
# jobs: | ||
# build-and-deploy: | ||
# runs-on: ubuntu-latest | ||
# env: | ||
# NODE_VERSION: 18 | ||
# PUBLISH_DIR: ./build | ||
|
||
# steps: | ||
# - name: Checkout Repository | ||
# uses: actions/checkout@v3 | ||
|
||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: ${{ env.NODE_VERSION }} | ||
|
||
# - name: Install Dependencies | ||
# run: npm install | ||
|
||
# - name: Add subdomain | ||
# uses: richardrigutins/replace-in-files@v2 | ||
# with: | ||
# files: 'package.json' | ||
# search-text: '"homepage": "/",' | ||
# replacement-text: '"homepage": "https://ai-cfia.github.io/nachet-frontend",' | ||
|
||
# - name: Print package.json | ||
# run: cat package.json | ||
|
||
# - name: Build | ||
# run: npm run build | ||
# env: | ||
# REACT_APP_BACKEND_URL: ${{ secrets.REACT_APP_BACKEND_URL }} | ||
|
||
# - name: Deploy to GitHub Pages | ||
# uses: peaceiris/actions-gh-pages@v3 | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# publish_dir: ${{ env.PUBLISH_DIR }} | ||
name: Build and Deploy to GitHub Pages | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
env: | ||
NODE_VERSION: 18 | ||
PUBLISH_DIR: ./build | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Add subdomain | ||
uses: richardrigutins/replace-in-files@v2 | ||
with: | ||
files: 'package.json' | ||
search-text: '"homepage": "/",' | ||
replacement-text: '"homepage": "https://ai-cfia.github.io/nachet-frontend",' | ||
|
||
- name: Print package.json | ||
run: cat package.json | ||
|
||
- name: Build | ||
run: npm run build | ||
env: | ||
REACT_APP_BACKEND_URL: ${{ secrets.REACT_APP_BACKEND_URL }} | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ${{ env.PUBLISH_DIR }} |