Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' into SgastonBW-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
brianluisgomez authored Jun 12, 2023
2 parents 009ee5f + bf96bce commit 2ce168b
Show file tree
Hide file tree
Showing 23 changed files with 1,060 additions and 552 deletions.
41 changes: 27 additions & 14 deletions .github/workflows/blog-posts.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,35 @@
name: Update Blog Posts
# Ingest repository_dispatch events for syncing blog posts
name: Blog Posts Listener

on:
schedule:
- cron: '0 13 * * 1'
workflow_dispatch:
repository_dispatch:
types: [Blog]

jobs:
get_blog_posts:
name: Get Most Recent Posts from Bandwidth Blog
sync-blog-posts:
runs-on: ubuntu-latest
# outputs:
# release_needed: ${{ steps.release_needed.outputs.release_needed }}
steps:
- name: Get Blog Posts from Wordpress API
id: get_posts
- name: Checkout
uses: actions/checkout@v3

- name: Configure Git and Create Branch
run: |
git config user.email "[email protected]"
git config user.name "DX-Bandwidth"
git checkout -b sync-blog-posts
- name: Update Blog Posts File
run: |
cat > ./site/blogposts.config.json <<< $POSTS_JSON
env:
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}
POSTS_JSON: ${{ toJson(github.event.client_payload.posts) }}

- name: Commit Changes and Create Pull Request
run: |
BLOG_POSTS=$(curl -Ls -H "Authorization: token $WORDPRESS_TOKEN" https://www.bandwidth.com/wp-json/wp/v2/posts?per_page=20 | jq '[del(.[] | select(.categories[] | contains(1680))) | .[] | {imageId: .featured_media, categories: .categories, postLink: .link, postTitle: .title.rendered}] | .[:10]')
echo $BLOG_POSTS
git add site/blogposts.config.json
git commit -m 'update blog posts'
git push origin sync-blog-posts
gh pr create -B main -H sync-blog-posts --title 'Update Blog Posts' --body 'Auto-generated by Blog Posts Listener Workflow'
env:
WORDPRESS_TOKEN: ${{ secrets.WORDPRESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}
8 changes: 1 addition & 7 deletions .github/workflows/cypress-prod-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,14 @@ jobs:
uses: actions/checkout@v3

- name: Cypress run
uses: cypress-io/github-action@v4.2.0
uses: cypress-io/github-action@v5.8.0
timeout-minutes: 40
with:
record: true
browser: ${{ matrix.browser }}
working-directory: ./site
config-file: prod-cypress.config.js
tag: production
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
notify_for_failures:
name: Notify for Failures
needs: [cypress_nightly]
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/pr-closed-delete-staging-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,14 @@ jobs:
EOL
- name: Cypress Staged Cloudfront Deployment Test
uses: cypress-io/github-action@v4.2.0
uses: cypress-io/github-action@v5.8.0
timeout-minutes: 40
with:
record: true
browser: ${{ matrix.browser }}
working-directory: ./site
config-file: staged-cypress.config.js
tag: production
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}

delete_bucket_folder:
name: Delete Bucket Folder
Expand Down
16 changes: 3 additions & 13 deletions .github/workflows/pr-publish-docsite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,39 +31,29 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Checkout
uses: actions/checkout@v3

- name: Cypress run
uses: cypress-io/github-action@v4.2.0
timeout-minutes: 40
uses: cypress-io/github-action@v5.8.0
timeout-minutes: 20
with:
record: true
browser: ${{ matrix.browser }}
start: yarn start
wait-on: http://localhost:3000
wait-on-timeout: 180
working-directory: ./site
config-file: cypress.config.js
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# overwrite commit message sent to Dashboard
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
# re-enable PR comment bot
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
GOOGLE_ANALYTICS_TRACKING_ID: "12345"
GTAG_TRACKING_ID: "12345"

publish:
name: Publish Temp Docsite
runs-on: ubuntu-latest
outputs:
domain: ${{steps.distribution.outputs.distribution-domain}}
id: ${{steps.distribution.outputs.distribution-id}}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
23 changes: 6 additions & 17 deletions .github/workflows/publish-docsite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,23 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Checkout
uses: actions/checkout@v3

- name: Cypress run
uses: cypress-io/github-action@v4.2.0
timeout-minutes: 40
uses: cypress-io/github-action@v5.8.0
timeout-minutes: 20
with:
record: true
browser: ${{ matrix.browser }}
start: yarn start
wait-on: http://localhost:3000
wait-on-timeout: 180
working-directory: ./site
config-file: cypress.config.js
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
GOOGLE_ANALYTICS_TRACKING_ID: "12345"
GTAG_TRACKING_ID: "12345"

Expand Down Expand Up @@ -127,26 +122,20 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18

- name: Checkout
uses: actions/checkout@v3

- name: Cypress Post Deployment Test
uses: cypress-io/github-action@v4.2.0
timeout-minutes: 40
uses: cypress-io/github-action@v5.8.0
timeout-minutes: 20
with:
record: true
browser: ${{ matrix.browser }}
working-directory: ./site
config-file: prod-cypress.config.js
tag: production
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
GOOGLE_ANALYTICS_TRACKING_ID: "12345"
GTAG_TRACKING_ID: "12345"

Expand Down
187 changes: 126 additions & 61 deletions site/blogposts.config.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,128 @@
[
{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Call-Assure_Toll-Free-Disaster-Recovery.png",
"categories": ["Voice"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/voice/"],
"postLink": "https://www.bandwidth.com/blog/toll-free-risks-and-mitigation/",
"postTitle": "5 biggest toll-free outage risk factors and how to prepare"
},{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/SoM-Blog-Images-2023-1-700x360.png",
"categories": ["Messaging"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/messaging/"],
"postLink": "https://www.bandwidth.com/blog/review-the-2023-carrier-requirements-for-10dlc-and-toll-free-sms/",
"postTitle": "Review the 2023 carrier requirements for 10DLC and toll-free SMS"
},{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Call-Assure_Toll-Free-Disaster-Recovery.png",
"categories": ["CPaaS", "Voice"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/cpaas/", "https://www.bandwidth.com/blog/category/voice/"],
"postLink": "https://www.bandwidth.com/blog/toll-free-disaster-recovery-like-never-before/",
"postTitle": "Toll-free disaster recovery like never before"
},{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/sip-trunking-vs-voip-scaled-1.jpg",
"categories": ["Voice"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/voice/"],
"postLink": "https://www.bandwidth.com/en-gb/blog/sip-trunking-vs-voip/",
"postTitle": "SIP trunking vs VoIP - What's the Difference?"
},{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Teams-Operator-Connect-2.png",
"categories": ["911 Access", "Messaging", "Voice"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/911-access/", "https://www.bandwidth.com/blog/category/messaging/", "https://www.bandwidth.com/blog/category/voice/"],
"postLink": "https://www.bandwidth.com/blog/microsoft-teams-operator-connect-vs-direct-routing/",
"postTitle": "Operator Connect vs. Direct Routing for Microsoft Teams"
},{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog-Outbound_Call_Meaning_SEO.png",
"categories": ["CPaaS"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/cpaas/"],
"postLink": "https://www.bandwidth.com/blog/outbound-call-meaning-using-outbound-calling-to-grow-your-business/",
"postTitle": "Outbound Call Meaning - Using Outbound Calling To Grow Your Business"
},{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Why-2FA-is-Vital_Blog.png",
"categories": ["Messaging"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/messaging/"],
"postLink": "https://www.bandwidth.com/blog/how-to-protect-user-data-with-two-factor-multi-factor-authentication/",
"postTitle": "How to Protect User Data with Two-Factor & Multi-Factor Authentication"
},{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Texting-Turns-30_Blog.png",
"categories": ["Messaging"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/messaging/"],
"postLink": "https://www.bandwidth.com/blog/texting-turns-30-the-history-of-sms/",
"postTitle": "The first text message ever sent turns 30 —the history of SMS"
},{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Finance_Blog_Feature_Graphic.png",
"categories": ["CPaaS"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/cpaas/"],
"postLink": "https://www.bandwidth.com/blog/financial-services-challenges/",
"postTitle": "6 challenges facing financial services in 2023, and how to overcome them"
},{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Genesys-Sunsetting-MultiCloud-1.png",
"categories": ["Voice"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/voice/"],
"postLink": "https://www.bandwidth.com/genesys-multicloud-cx-sunsetting/",
"postTitle": "Why Genesys is Sunsetting MultiCloud CX"
}
{
"categories": [
"CPaaS"
],
"categoryLinks": [
"https://www.bandwidth.com/blog/category/cpaas/"
],
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_ECL-Teasers_Executives-ECL-Take.png",
"postLink": "https://www.bandwidth.com/blog/enterprise-communications-landscape-overview/",
"postTitle": "An executive’s take on 2023 Enterprise Communications"
},
{
"categories": [
"Messaging"
],
"categoryLinks": [
"https://www.bandwidth.com/blog/category/messaging/"
],
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Toll-Free-Verification-1.png",
"postLink": "https://www.bandwidth.com/blog/toll-free-verification-api/",
"postTitle": "Streamline your toll-free number verification with Bandwidth"
},
{
"categories": [
"911 Access",
"CPaaS",
"Phone Numbers",
"Voice"
],
"categoryLinks": [
"https://www.bandwidth.com/blog/category/911-access/",
"https://www.bandwidth.com/blog/category/cpaas/",
"https://www.bandwidth.com/blog/category/phone-numbers/",
"https://www.bandwidth.com/blog/category/voice/"
],
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/The-MAN-Program-Blog-1-Header.png",
"postLink": "https://www.bandwidth.com/blog/introduction-to-the-man-program-part-1/",
"postTitle": "Get with the program, MAN (Part 1)"
},
{
"categories": [
"CPaaS"
],
"categoryLinks": [
"https://www.bandwidth.com/blog/category/cpaas/"
],
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_ECL-Teasers_IT-Leaders-Headaches.png",
"postLink": "https://www.bandwidth.com/blog/whats-keeping-it-leaders-up-at-night-2023/",
"postTitle": "What’s keeping IT leaders up at night?"
},
{
"categories": [
"CPaaS"
],
"categoryLinks": [
"https://www.bandwidth.com/blog/category/cpaas/"
],
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_World-Telecommunications-Day-1.png",
"postLink": "https://www.bandwidth.com/blog/world-telecommunications-day/",
"postTitle": "World Telecommunication and Information Society Day (WTISD) on May 17th"
},
{
"categories": [
"CPaaS"
],
"categoryLinks": [
"https://www.bandwidth.com/blog/category/cpaas/"
],
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_ECL-Teasers_Cloud-Adoption-Rates.png",
"postLink": "https://www.bandwidth.com/blog/the-state-of-enterprise-cloud-adoption-2023/",
"postTitle": "The state of enterprise cloud adoption: 2023"
},
{
"categories": [
"CPaaS",
"Voice"
],
"categoryLinks": [
"https://www.bandwidth.com/blog/category/cpaas/",
"https://www.bandwidth.com/blog/category/voice/"
],
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_What-Is-VOIP-Jitter-2.png",
"postLink": "https://www.bandwidth.com/blog/network-jitter-complete-guide-to-what-internet-jitter-is-how-to-fix-it/",
"postTitle": "Network Jitter – Complete Guide to What Internet Jitter Is &amp; How to Fix It"
},
{
"categories": [
"CPaaS"
],
"categoryLinks": [
"https://www.bandwidth.com/blog/category/cpaas/"
],
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/[email protected]",
"postLink": "https://www.bandwidth.com/blog/maestro-makes-convergence-reality/",
"postTitle": "Bandwidth Strives to Make Best-of-Breed CCaaS-UCaaS Convergence a Reality"
},
{
"categories": [
"CPaaS",
"Healthcare",
"Messaging",
"Voice API"
],
"categoryLinks": [
"https://www.bandwidth.com/blog/category/cpaas/",
"https://www.bandwidth.com/blog/category/healthcare/",
"https://www.bandwidth.com/blog/category/messaging/",
"https://www.bandwidth.com/blog/category/voice/voice-api/"
],
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Event_HIMSS-2023-Blog.png",
"postLink": "https://www.bandwidth.com/blog/himss-2023-highlights/",
"postTitle": "HIMSS 2023: New patient expectations and AI&#8217;s evolved role were the focus"
},
{
"categories": [
"911 Access",
"Voice"
],
"categoryLinks": [
"https://www.bandwidth.com/blog/category/911-access/",
"https://www.bandwidth.com/blog/category/voice/"
],
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_SBC-for-Teams-Direct-Routing.png",
"postLink": "https://www.bandwidth.com/blog/hosted-sbc-for-microsoft-teams-direct-routing/",
"postTitle": "Your SBC for Microsoft Teams Direct Routing: 2023 Guide"
}
]
1 change: 0 additions & 1 deletion site/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = defineConfig({
},
baseUrl: 'http://localhost:3000'
},
projectId: "oz7rpf",
pageLoadTimeout: 60000,
viewportWidth: 1440,
viewportHeight: 900,
Expand Down
Loading

0 comments on commit 2ce168b

Please sign in to comment.