Skip to content

Commit

Permalink
workflow stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
solderq35 committed Aug 24, 2023
1 parent 532b6c8 commit 762df92
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
86 changes: 43 additions & 43 deletions .github/workflows/gh-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
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
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 }}
2 changes: 1 addition & 1 deletion .github/workflows/test-build-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set-up Node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: AWS Creds
uses: aws-actions/configure-aws-credentials@v1
with:
Expand Down

0 comments on commit 762df92

Please sign in to comment.