Create vendored tarball on release
This commit is contained in:
parent
c7fdfb8116
commit
51de84407f
19
.github/workflows/trigger_release.yml
vendored
19
.github/workflows/trigger_release.yml
vendored
@ -39,6 +39,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'true'
|
||||
path: 'PolyMC-source'
|
||||
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v2
|
||||
|
||||
@ -49,11 +55,14 @@ jobs:
|
||||
|
||||
- name: Package artifacts properly
|
||||
run: |
|
||||
mv ${{ github.workspace }}/PolyMC-source PolyMC-${{ env.VERSION }}
|
||||
mv PolyMC-Linux*/PolyMC.tar.gz PolyMC-Linux-${{ env.VERSION }}.tar.gz
|
||||
mv PolyMC-*.AppImage/PolyMC-*.AppImage PolyMC-Linux-${{ env.VERSION }}-x86_64.AppImage
|
||||
mv PolyMC-Windows* PolyMC-Windows-${{ env.VERSION }}
|
||||
mv PolyMC-macOS*/PolyMC.tar.gz PolyMC-macOS-${{ env.VERSION }}.tar.gz
|
||||
|
||||
tar -czf PolyMC-${{ env.VERSION }}.tar.gz PolyMC-${{ env.VERSION }}
|
||||
|
||||
cd PolyMC-Windows-${{ env.VERSION }}
|
||||
zip -r -9 ../PolyMC-Windows-${{ env.VERSION }}.zip *
|
||||
cd ..
|
||||
@ -97,3 +106,13 @@ jobs:
|
||||
asset_name: PolyMC-macOS-${{ env.VERSION }}.tar.gz
|
||||
asset_path: PolyMC-macOS-${{ env.VERSION }}.tar.gz
|
||||
asset_content_type: application/gzip
|
||||
|
||||
- name: Upload vendored source tarball
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
||||
asset_name: PolyMC-${{ env.VERSION }}.tar.gz
|
||||
asset_path: PolyMC-${{ env.VERSION }}.tar.gz
|
||||
asset_content_type: application/gzip
|
||||
|
Loading…
Reference in New Issue
Block a user