fix: compile schemas in release; bump to 1.0.2; doc note #3
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: Release | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| build-and-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Show metadata | |
| run: | | |
| python3 -m json.tool metadata.json | |
| - name: Compile schemas | |
| run: | | |
| glib-compile-schemas schemas | |
| - name: Prepare zip | |
| run: | | |
| UUID=$(python3 -c 'import json;print(json.load(open("metadata.json"))["uuid"])') | |
| echo "UUID=$UUID" >> $GITHUB_ENV | |
| mkdir -p dist | |
| zip -r "dist/${UUID}.shell-extension.zip" \ | |
| extension.js prefs.js metadata.json stylesheet.css schemas screenshots README.md LICENSE CODE_OF_CONDUCT.md SECURITY.md || true | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: extension-zips | |
| path: dist/*.zip | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| dist/*.zip | |
| generate_release_notes: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |