docs: translations included in wallpaper plugin work in Plasma 6.5.6 #108
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
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| name: release-please | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| token: ${{ secrets.RELEASE_PLEASE_TOKEN }} | |
| - uses: actions/setup-python@v5 | |
| with: | |
| # Semantic version range syntax or exact version of a Python version | |
| python-version: "3.x" | |
| # Optional - x64 or x86 architecture, defaults to x64 | |
| architecture: "x64" | |
| - name: Install gettext | |
| run: sudo apt-get update && sudo apt-get install -y gettext | |
| - name: Extract project name | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: | | |
| PROJECT_NAME=$(grep -Po '(?<=project\().*(?=\))' CMakeLists.txt) | |
| echo "PROJECT_NAME=$PROJECT_NAME" >> $GITHUB_ENV | |
| - name: Build translations | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: | | |
| ./bin/i18n compile | |
| - name: Generate wallpaper package | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: | | |
| cd ./package | |
| tar -cf ../${{ env.PROJECT_NAME }}-${{steps.release.outputs.tag_name}}.tar.gz --auto-compress . | |
| - name: Upload wallpaper package to release | |
| if: ${{ steps.release.outputs.release_created }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh release upload ${{ steps.release.outputs.tag_name }} ./${{ env.PROJECT_NAME }}-${{steps.release.outputs.tag_name}}.tar.gz |