Skip to content

Commit

Permalink
Use multiple zips (#5350)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Feb 25, 2022
1 parent d5045eb commit 31783e2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ jobs:
- name: Compile frontend assets
run: npm run frontend-prod

- name: Create zip
run: cd resources && tar -czvf dist.tar.gz dist dist-frontend
- name: Create dist zip
run: cd resources && tar -czvf dist.tar.gz dist

- name: Create dist-frontend zip
run: cd resources && tar -czvf dist-frontend.tar.gz dist-frontend

- name: Get Changelog
id: changelog
Expand All @@ -41,7 +44,7 @@ jobs:
body: ${{ steps.changelog.outputs.text }}
prerelease: true

- name: Upload zip to release
- name: Upload dist zip to release
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -50,3 +53,13 @@ jobs:
asset_path: ./resources/dist.tar.gz
asset_name: dist.tar.gz
asset_content_type: application/tar+gz

- name: Upload dist-frontend zip to release
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./resources/dist-frontend.tar.gz
asset_name: dist-frontend.tar.gz
asset_content_type: application/tar+gz
14 changes: 10 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,16 @@
}
},
"extra": {
"download-dist": {
"url": "https://github.com/statamic/cms/releases/download/{$version}/dist.tar.gz",
"path": "resources"
},
"download-dist": [
{
"url": "https://github.com/statamic/cms/releases/download/{$version}/dist.tar.gz",
"path": "resources/dist"
},
{
"url": "https://github.com/statamic/cms/releases/download/{$version}/dist-frontend.tar.gz",
"path": "resources/dist-frontend"
}
],
"laravel": {
"providers": [
"Statamic\\Providers\\StatamicServiceProvider"
Expand Down

0 comments on commit 31783e2

Please sign in to comment.