-
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.
Back button refresh / deploy refresh automation (#11)
* refresh on back * test deploy automation * publicpath smh * testing 30s * delay comment * add todo for font, fix env check * fix test build workflow * last cleanup todos? * KioWare testing * KioWare testing * Reset refreshinterval * Reset title * remove back button
- Loading branch information
Showing
6 changed files
with
112 additions
and
35 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,3 +1,3 @@ | ||
NODE_ENV=production | ||
VUE_APP_ROOT_API= | ||
VUE_APP_HOST_ADDRESS= | ||
NODE_ENV=production | ||
VUE_APP_ROOT_API= | ||
VUE_APP_HOST_ADDRESS=http://sustainability-kiosks.s3-website-us-west-2.amazonaws.com |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: S3 Test Build | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-deploy-s3: | ||
name: Build / Deploy to S3 Test Build | ||
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: AWS Creds | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-west-2 | ||
- name: npm install | ||
run: | | ||
npm install | ||
- name: npm build frontend | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
run: | | ||
npm run build-stage | ||
- name: deploy frontend to s3 | ||
run: | | ||
aws s3 sync ./dist s3://sustainability-kiosks | ||
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