Skip to content

Commit

Permalink
ci: 🎡 add gh-pages deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
abcfy2 committed Dec 20, 2022
1 parent 57c2292 commit 20cbc0d
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 1,168 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tn-p1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ jobs:
with:
name: test-report
path: reports/
- uses: actions/upload-pages-artifact@v1
if: github.event_name == 'push'
with:
path: token-negotiator-dist/
17 changes: 17 additions & 0 deletions .github/workflows/tn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- staging
- ci-testing
pull_request:
branches:
- "*"
Expand All @@ -31,3 +32,19 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

gh-pages:
needs:
- tn-p1
permissions:
pages: write
id-token: write
environment:
name: gh-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
if: github.event_name == 'push' && contains(fromJson('["main", "ci-testing"]'), github.ref_name)
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ junit.xml
dist-common-js
dist/
bundles
.idea
.idea
token-negotiator-dist/

2 changes: 0 additions & 2 deletions token-negotiator-dist/363.negotiator.js

This file was deleted.

6 changes: 0 additions & 6 deletions token-negotiator-dist/363.negotiator.js.LICENSE.txt

This file was deleted.

2 changes: 0 additions & 2 deletions token-negotiator-dist/380.negotiator.js

This file was deleted.

10 changes: 0 additions & 10 deletions token-negotiator-dist/380.negotiator.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion token-negotiator-dist/392.negotiator.js

This file was deleted.

2 changes: 0 additions & 2 deletions token-negotiator-dist/443.negotiator.js

This file was deleted.

4 changes: 0 additions & 4 deletions token-negotiator-dist/443.negotiator.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion token-negotiator-dist/811.negotiator.js

This file was deleted.

1 change: 0 additions & 1 deletion token-negotiator-dist/827.negotiator.js

This file was deleted.

2 changes: 0 additions & 2 deletions token-negotiator-dist/negotiator.js

This file was deleted.

51 changes: 0 additions & 51 deletions token-negotiator-dist/negotiator.js.LICENSE.txt

This file was deleted.

Loading

1 comment on commit 20cbc0d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements 42.72% 854/1999
🔴 Branches 28.7% 227/791
🔴 Functions 44.3% 132/298
🔴 Lines 42.4% 753/1776

Test suite run success

71 tests passing in 8 suites.

Report generated by 🧪jest coverage report action from 20cbc0d

Please sign in to comment.