-
-
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
1 parent
67b2931
commit 2d20a1d
Showing
1 changed file
with
48 additions
and
0 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,48 @@ | ||
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 | ||
|
||
- name: Download translations from Crowdin | ||
run: yarn crowdin-download | ||
|
||
- 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 }} |