diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index a598c002..c92d2566 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -69,6 +69,18 @@ jobs: asset_name: serve-d_linux-nightly-${{ steps.vars.outputs.arch_short }}-$$.tar.xz asset_content_type: application/x-gtar + - name: Deploy Linux release (tar.gz) + if: matrix.os == 'ubuntu-20.04' + uses: WebFreak001/deploy-nightly@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: https://uploads.github.com/repos/Pure-D/serve-d/releases/20717582/assets{?name,label} + release_id: 20717582 + asset_path: ./serve-d.tar.gz + asset_name: serve-d_linux-nightly-${{ steps.vars.outputs.arch_short }}-$$.tar.gz + asset_content_type: application/gzip + # OSX release - name: Build OSX release run: ./ci/build.sh @@ -92,6 +104,18 @@ jobs: asset_name: serve-d_osx-nightly-${{ steps.vars.outputs.arch_short }}-$$.tar.xz asset_content_type: application/x-gtar + - name: Deploy OSX release (tar.gz) + if: matrix.os == 'macos-latest' + uses: WebFreak001/deploy-nightly@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: https://uploads.github.com/repos/Pure-D/serve-d/releases/20717582/assets{?name,label} + release_id: 20717582 + asset_path: ./serve-d.tar.gz + asset_name: serve-d_osx-nightly-${{ steps.vars.outputs.arch_short }}-$$.tar.gz + asset_content_type: application/gzip + # Windows release - name: Build Windows release run: .\ci\build.bat diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 644316b4..a23838e7 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -61,6 +61,17 @@ jobs: mime: application/x-gtar name: serve-d_${TAG}-${OS}.tar.xz + - name: Deploy Linux release (tar.gz) + if: matrix.os == 'ubuntu-20.04' + uses: WebFreak001/upload-asset@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OS: linux-${{ steps.vars.outputs.arch_short }} + with: + file: ./serve-d.tar.gz + mime: application/gzip + name: serve-d_${TAG}-${OS}.tar.gz + # OSX release - name: Build OSX release run: ./ci/build.sh && rdmd ci/validate_version.d @@ -82,6 +93,17 @@ jobs: mime: application/x-gtar name: serve-d_${TAG}-${OS}.tar.xz + - name: Deploy OSX release (tar.gz) + if: matrix.os == 'macos-latest' + uses: WebFreak001/upload-asset@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OS: osx-${{ steps.vars.outputs.arch_short }} + with: + file: ./serve-d.tar.gz + mime: application/gzip + name: serve-d_${TAG}-${OS}.tar.gz + # Windows release - name: Build Windows release run: (.\ci\build.bat) -and (rdmd ci\validate_version.d) diff --git a/ci/build.sh b/ci/build.sh index 34dd5f52..986bdfc7 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -10,3 +10,4 @@ else fi tar cfJ serve-d.tar.xz serve-d +tar czf serve-d.tar.gz serve-d diff --git a/release.sh b/release.sh index 44b48104..9efd1787 100755 --- a/release.sh +++ b/release.sh @@ -5,4 +5,5 @@ VERSION=$(./serve-d --version 2>&1 | grep -oh "serve-d standalone v[0-9]*\.[0-9] echo $VERSION > version.txt echo $VERSION tar cfJ serve-d_$VERSION-linux-x86_64.tar.xz serve-d +tar czf serve-d_$VERSION-linux-x86_64.tar.gz serve-d