-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
66 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Build and Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- release | ||
- embed | ||
workflow_dispatch: # Allows manual triggering of the workflow | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile --network-timeout 1000000000 | ||
|
||
# Not yet | ||
# - name: Upload translations to Crowdin | ||
# if: github.ref == 'refs/heads/release' | ||
# # Push any new code-based strings to Crowdin | ||
# run: crowdin-dangerous-upload | ||
# env: | ||
# bloomCrowdinApiToken: ${{ secrets.BLOOM_CROWDIN_TOKEN }} | ||
|
||
- name: Download translations from Crowdin | ||
run: yarn crowdin-download | ||
env: | ||
bloomCrowdinApiToken: ${{ secrets.BLOOM_CROWDIN_TOKEN }} | ||
|
||
- name: Build | ||
run: | | ||
if [ "${{ github.ref }}" == "refs/heads/master" ]; then | ||
yarn build:ci:alpha | ||
else | ||
yarn build:ci | ||
fi | ||
- name: Run tests | ||
run: yarn test:ci | ||
|
||
# Not yet | ||
# - name: Deploy to S3 | ||
# run: | | ||
# aws s3 cp path/to/build/artifacts s3://your-bucket-name --recursive | ||
# env: | ||
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
11 changes: 8 additions & 3 deletions
11
.github/workflows/main.yml → .github/workflows/lighthouse.yml
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
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