-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* kinda makes it compatible with node 18? didn't test backend yet * backend node18 * workflow stuff * try to fix build-stage node18 * try env in yml file * add legacy ssl to gh deploy
- Loading branch information
Showing
5 changed files
with
52 additions
and
47 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,2 +1,2 @@ | ||
VUE_APP_ROOT_API=htt://localhost:3000 | ||
VUE_APP_ROOT_API=http://localhost:3000 | ||
VUE_APP_HOST_ADDRESS=http://localhost:8080 |
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,46 @@ | ||
name: gh pages | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
unit-tests: | ||
name: Unit Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: unit tests | ||
working-directory: backend | ||
run: | | ||
docker-compose build | ||
docker-compose run --rm test | ||
docker-compose down | ||
build-deploy-gh-pages: | ||
name: Build / Deploy to gh-pages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set-up Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16 | ||
- name: npm install | ||
run: | | ||
npm install | ||
- name: npm build frontend | ||
run: | | ||
npm run build | ||
- name: deploy frontend to gh pages | ||
uses: crazy-max/ghaction-github-pages@v3 # https://github.com/crazy-max/ghaction-github-pages | ||
with: | ||
target_branch: gh-pages | ||
build_dir: dist | ||
fqdn: dashboard.sustainability.oregonstate.edu | ||
env: | ||
name: gh pages | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
unit-tests: | ||
name: Unit Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: unit tests | ||
working-directory: backend | ||
run: | | ||
docker-compose build | ||
docker-compose run --rm test | ||
docker-compose down | ||
build-deploy-gh-pages: | ||
name: Build / Deploy to gh-pages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set-up Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18 | ||
- name: npm install | ||
run: | | ||
npm install | ||
- name: npm build frontend | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
run: | | ||
npm run build | ||
- name: deploy frontend to gh pages | ||
uses: crazy-max/ghaction-github-pages@v3 # https://github.com/crazy-max/ghaction-github-pages | ||
with: | ||
target_branch: gh-pages | ||
build_dir: dist | ||
fqdn: dashboard.sustainability.oregonstate.edu | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
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