Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Replace Razbot with CFLbot #1553

Merged
merged 1 commit into from
Dec 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 24 additions & 25 deletions .github/workflows/publish-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,38 +27,37 @@ jobs:
pipenv install --dev --system
pip install -U git+https://github.com/ocadotechnology/codeforlife-portal.git#egg=codeforlife-portal #TODO: Remove as part of #688
sudo apt-get install gettext
#TODO: Bring back these steps once we've finished setting up the CFL bot
# - name: Prepare files for Crowdin
# run: |
# mkdir -p game/locale
# cd game && django-admin makemessages -l en_GB --no-wrap && cd -
# cd game && django-admin makemessages -l en_GB --no-wrap -d djangojs --ignore "static/game/js/foundation/*" && cd - # some files from foundation use '_' for their own purpose
# - name: Run Crowdin (Upload sources and download translations)
# uses: crowdin/github-action@v1
# with:
# upload_sources: true
# download_translations: true
# push_translations: false
# project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
# token: ${{ secrets.CROWDIN_API_KEY }}
# env:
# GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
# - name: Fix translation files owner
# run: sudo chown -R $USER game/locale
# - name: Compile messages
# run: |
# pushd game
# django-admin compilemessages
# popd
- name: Prepare files for Crowdin
run: |
mkdir -p game/locale
cd game && django-admin makemessages -l en_GB --no-wrap && cd -
cd game && django-admin makemessages -l en_GB --no-wrap -d djangojs --ignore "static/game/js/foundation/*" && cd - # some files from foundation use '_' for their own purpose
- name: Run Crowdin (Upload sources and download translations)
uses: crowdin/github-action@v1
with:
upload_sources: true
download_translations: true
push_translations: false
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
token: ${{ secrets.CROWDIN_API_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.CFL_BOT_GITHUB_TOKEN }}
- name: Fix translation files owner
run: sudo chown -R $USER game/locale
- name: Compile messages
run: |
pushd game
django-admin compilemessages
popd
- name: Release rapid-router
uses: relekang/[email protected]
with:
github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
github_token: ${{ secrets.CFL_BOT_GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
- name: Trigger staging deployment
uses: actions/github-script@v6
with:
github-token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
github-token: ${{ secrets.CFL_BOT_GITHUB_TOKEN }}
script: |
github.rest.actions.createWorkflowDispatch({
owner: 'ocadotechnology',
Expand Down