Deploy #73
This file contains hidden or 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
| name: Deploy | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/deploy.yml' | |
| - 'translation_build/**' | |
| workflow_run: | |
| workflows: | |
| - Build | |
| branches: [main] | |
| types: | |
| - completed | |
| permissions: | |
| contents: write | |
| jobs: | |
| prepare: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Prepare to deploy | |
| run: | | |
| mkdir deploy | |
| cp -r translation_build deploy/translation_build | |
| shopt -s globstar && rm deploy/translation_build/**/errors.txt || true | |
| touch deploy/.nojekyll | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: data | |
| path: deploy | |
| include-hidden-files: true | |
| deploy_to_gh_pages: | |
| runs-on: ubuntu-latest | |
| needs: prepare | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Download artifact | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: data | |
| path: deploy | |
| - name: Deploy to Github Pages | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| git-config-name: github-actions[bot] | |
| git-config-email: 41898282+github-actions[bot]@users.noreply.github.com | |
| folder: deploy | |
| single-commit: true |