Commit to generate zips #46
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: Build template zips | |
| on: | |
| push: | |
| branches: [ master, 2.0 ] | |
| paths: | |
| - 'packages/templates/**' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-templates: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Create template zips | |
| run: | | |
| cd packages/templates | |
| zip -r minimal.zip minimal/ | |
| zip -r blog.zip blog/ | |
| zip -r spa.zip spa/ | |
| zip -r full.zip full/ | |
| - name: Commit zips | |
| run: | | |
| git config user.name github-actions | |
| git config user.email github-actions@github.com | |
| git add packages/templates/*.zip | |
| git diff --quiet && git diff --staged --quiet || git commit -m "Update template zips" | |
| git push |