Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
VitalikL committed Nov 19, 2023
1 parent 406a4d7 commit 5858129
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/deploy-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
required: true
type: string

env:
DEPLOY_ENV: ${{ inputs.branch }}

jobs:
deploy-resources:
if: (github.repository == 'Adventech/sabbath-school-resources')
Expand All @@ -34,16 +31,28 @@ jobs:
working-directory: ops/deploy/creds
- run: node ops/deploy/deploy-documents.js
name: Deploy documents
env:
DEPLOY_ENV: ${{ inputs.branch }}
- run: node ops/deploy/deploy-sections.js
name: Deploy categories
env:
DEPLOY_ENV: ${{ inputs.branch }}
- run: node ops/deploy/deploy-categories.js
name: Deploy categories
env:
DEPLOY_ENV: ${{ inputs.branch }}
- run: node ops/deploy/deploy-authors.js
name: Deploy authors
env:
DEPLOY_ENV: ${{ inputs.branch }}
- run: node ops/deploy/deploy-resources.js
name: Deploy resources
env:
DEPLOY_ENV: ${{ inputs.branch }}
- run: node ops/deploy/deploy-languages.js
name: Deploy languages
env:
DEPLOY_ENV: ${{ inputs.branch }}
- run: aws s3 cp dist/ s3://sabbath-school`[[ "${{ inputs.branch }}" = "stage" ]] && echo '-stage'`.adventech.io --acl "public-read" --region us-east-1 --no-progress --recursive
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down
2 changes: 1 addition & 1 deletion ops/deploy/deploy-resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ let processResources = async function (resourceType) {
direction: recentFeedGroup.direction || FEED_DIRECTION.HORIZONTAL,
}
console.log(`deploying recent feed group`, recentFeedGroupAPI)
await database.collection(FIREBASE_DATABASE_LANGUAGES).doc(language).set(recentFeedGroupAPI);
await database.collection(FIREBASE_DATABASE_LANGUAGES).doc(language).collection("feed").doc("recent").set(recentFeedGroupAPI);
}

resourceFeed = resourceFeed.filter(g => g.resources.length).map(g => {
Expand Down
2 changes: 1 addition & 1 deletion src/en/devo/test/content/blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Split this one

Hello <sup>1</sup> In the beginning God created the heavens and the earth.

Hello 2 <sub>1</sub> In the beginning God created the heavens and the earth.
Hello <sub>1</sub> In the beginning God created the heavens and the earth.

1. First
2. Second
Expand Down

0 comments on commit 5858129

Please sign in to comment.