Merge pull request #615 from seneca/patch-48 #30
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" ] | |
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/ | |
ls -la *.zip | |
# Dev push | |
- name: Test zip creation | |
# if: github.event_name == 'push' | |
if: false | |
uses: actions/upload-artifact@v4 | |
with: | |
name: templates | |
path: packages/templates/*.zip | |
retention-days: 1 | |
# Prod release | |
- name: Release zip files | |
if: github.event_name == 'release' | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: packages/templates/*.zip |