Skip to content

Commit

Permalink
Merge pull request #275 from TokenScript/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
nicktaras committed Oct 24, 2023
2 parents e2680bc + 1916c9f commit 2270ac4
Show file tree
Hide file tree
Showing 171 changed files with 140,811 additions and 7,442 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
node-version: [16.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
node-version: [16.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ecommerce-store-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
name: ecommerce-store-website
path: ecommerce-store-website/out/
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
76 changes: 76 additions & 0 deletions .github/workflows/socios-auth2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: "socios-oauth2 CI"

on:
push:
branches:
- main
- staging
pull_request:
branches:
- "*"
workflow_dispatch:

env:
PROJ_PATH: socios-oauth2
DEPLOY_URL: https://socios-oauth2.tokenscript.org/

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache-dependency-path: ${{ env.PROJ_PATH }}/package-lock.json
- run: |
echo -n "Node version: "
node -v
echo -n "Npm version: "
npm -v
- name: build
run: |
cd "${PROJ_PATH}"
npm ci
npm run build
- uses: actions/upload-artifact@v3
with:
name: socios-oauth2
path: ${{ env.PROJ_PATH }}/dist/

deploy:
runs-on: ubuntu-latest
environment:
name: socios-oauth2
url: ${{ env.DEPLOY_URL }}
needs:
- build
if: ${{ contains(
fromJson('["push", "workflow_dispatch"]'),
github.event_name) &&
contains(
fromJson('["staging"]'),
github.ref_name)
}}
steps:
- uses: actions/download-artifact@v3
with:
name: socios-oauth2
path: ${{ env.PROJ_PATH }}/dist/
- name: Deploy to EC2
uses: easingthemes/ssh-deploy@v4
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
REMOTE_HOST: 54.177.203.8
REMOTE_USER: ubuntu
ARGS: "-aPz --delete"
SOURCE: "${{ env.PROJ_PATH }}/dist/"
TARGET: /opt/services/socios-oauth2/
SCRIPT_AFTER: |
sudo systemctl restart socios-oauth2
- name: check deploy
run: |
for i in $(seq 15); do
curl -sfL --connect-timeout 30 "${DEPLOY_URL}" && exit || sleep 5
done && exit 1
4 changes: 2 additions & 2 deletions .github/workflows/token-outlet-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
name: token-outlet-website
path: token-outlet-website/build/
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
1 change: 0 additions & 1 deletion angular-bare-bones-demo/dist/235.c021a217ad7b926f.js

This file was deleted.

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions angular-bare-bones-demo/dist/3rdpartylicenses.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2818,6 +2818,31 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


abort-controller
MIT
MIT License

Copyright (c) 2017 Toru Nagashima

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


aes-js
MIT
The MIT License (MIT)
Expand Down Expand Up @@ -5200,31 +5225,6 @@ SOFTWARE.



string.prototype.trim
MIT
The MIT License (MIT)

Copyright (c) 2015 Jordan Harband

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


string_decoder
MIT
Node.js is licensed for use as follows:
Expand Down
1 change: 0 additions & 1 deletion angular-bare-bones-demo/dist/40.3dccefb5519350f6.js

This file was deleted.

1 change: 0 additions & 1 deletion angular-bare-bones-demo/dist/475.e3436a297ca126a7.js

This file was deleted.

1 change: 1 addition & 0 deletions angular-bare-bones-demo/dist/632.9d9f36148f656fbe.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions angular-bare-bones-demo/dist/639.c511f58df2809e7d.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions angular-bare-bones-demo/dist/729.4bb64d60e5140b36.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion angular-bare-bones-demo/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<style>@import"https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@200;400&display=swap.css"</style><link rel="stylesheet" href="/token-negotiator-examples/angular-bare-bones-demo/styles.fea609fc74ab4ced.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="/token-negotiator-examples/angular-bare-bones-demo/styles.fea609fc74ab4ced.css"></noscript></head>
<body>
<app-root></app-root>
<script src="/token-negotiator-examples/angular-bare-bones-demo/runtime.0fc8c89eeeb6f972.js" type="module"></script><script src="/token-negotiator-examples/angular-bare-bones-demo/polyfills.4d7608bd69f2092d.js" type="module"></script><script src="/token-negotiator-examples/angular-bare-bones-demo/main.c1a633876c33af4f.js" type="module"></script>
<script src="/token-negotiator-examples/angular-bare-bones-demo/runtime.0d7712296a14e25c.js" type="module"></script><script src="/token-negotiator-examples/angular-bare-bones-demo/polyfills.4d7608bd69f2092d.js" type="module"></script><script src="/token-negotiator-examples/angular-bare-bones-demo/main.8007b9fe72510b57.js" type="module"></script>

</body></html>
1 change: 1 addition & 0 deletions angular-bare-bones-demo/dist/main.8007b9fe72510b57.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion angular-bare-bones-demo/dist/main.c1a633876c33af4f.js

This file was deleted.

1 change: 1 addition & 0 deletions angular-bare-bones-demo/dist/runtime.0d7712296a14e25c.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion angular-bare-bones-demo/dist/runtime.0fc8c89eeeb6f972.js

This file was deleted.

Loading

0 comments on commit 2270ac4

Please sign in to comment.