Generate feature graphic #79
Workflow file for this run
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: Generate feature graphic | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'fastlane/**/title.txt' | |
| - '.scripts/generate_feature_graphic/**' | |
| permissions: | |
| actions: none | |
| checks: none | |
| contents: write | |
| deployments: none | |
| discussions: none | |
| id-token: none | |
| issues: none | |
| packages: none | |
| pages: none | |
| pull-requests: write | |
| repository-projects: none | |
| security-events: none | |
| statuses: none | |
| jobs: | |
| generate-feature-graphic: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Install requirements | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install imagemagick mat2 optipng | |
| # Install 200 weight versions of relevant Noto (to use for languages not supported by Lexend Deca) | |
| sudo apt-get install fonts-noto-extra fonts-noto-cjk-extra | |
| # Custom fonts | |
| mkdir "$HOME/.fonts" | |
| find .scripts/generate_feature_graphic/fonts -name '*.ttf' -exec cp {} "$HOME/.fonts" \; | |
| fc-cache | |
| - name: Generate featureGraphic.png for each language | |
| run: .scripts/generate_feature_graphic/generate_feature_graphic.sh | |
| - name: Create Pull Request | |
| uses: peter-evans/[email protected] | |
| with: | |
| title: "Update feature graphic" | |
| commit-message: "Update feature graphic" | |
| branch-suffix: timestamp |