From 35724be9d54e63e4f08e69dd30b37d978aa70aa6 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Mon, 17 Jun 2024 18:40:58 +0100 Subject: [PATCH] workflow dispatch --- .github/workflows/publish-python-package.yml | 45 ++++++++++---------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/.github/workflows/publish-python-package.yml b/.github/workflows/publish-python-package.yml index 90db23f70..7e9556c5e 100644 --- a/.github/workflows/publish-python-package.yml +++ b/.github/workflows/publish-python-package.yml @@ -6,6 +6,7 @@ on: paths-ignore: - "CHANGELOG.md" - "game/__init__.py" + workflow_dispatch: jobs: publish-pypi-packages: name: Publish PyPi Packages @@ -28,28 +29,28 @@ jobs: 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: Restore action once we figure out how to use bot token properly (if still needed) -# - 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: 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/python-semantic-release@v7.34.6 with: