diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2eadfec..a9492e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt - name: Use pyinstall to create distribution binary - run: pyinstaller -F support_bundle_bootstrap.py + run: pyinstaller -F support_bundle_bootstrap.py --runtime-tmpdir /opt/netfoundry/ - name: version run: echo "version=$(./dist/support_bundle -v)" >> $GITHUB_ENV id: version @@ -34,33 +34,15 @@ jobs: run: cd dist; mv support_bundle_bootstrap vm-support-bundle; tar -zcvf support_bundle_bootstrap.tar.gz vm-support-bundle - name: Tar main script run: cd dist; mv support_bundle .support_bundle; tar cfvz support_bundle.tar.gz .support_bundle + - name: release - uses: actions/create-release@v1 + uses: ncipollo/release-action@v1 id: release with: draft: false prerelease: false - release_name: v${{ env.version }} - tag_name: v${{ env.version }} + tag: v${{ env.version }} + artifacts: "dist/support_bundle_bootstrap.tar.gz,dist/support_bundle.tar.gz" + artifactContentType: application/gzip env: GITHUB_TOKEN: ${{ github.token }} - - - name: Upload support_bundle bootstrap release - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ github.token }} - with: - upload_url: ${{ steps.release.outputs.upload_url }} - asset_path: dist/support_bundle_bootstrap.tar.gz - asset_name: support_bundle_bootstrap.tar.gz - asset_content_type: application/gzip - - - name: Upload support_bundle release - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ github.token }} - with: - upload_url: ${{ steps.release.outputs.upload_url }} - asset_path: dist/support_bundle.tar.gz - asset_name: support_bundle.tar.gz - asset_content_type: application/gzip diff --git a/dist/support_bundle b/dist/support_bundle index 16e55de..003327d 100755 Binary files a/dist/support_bundle and b/dist/support_bundle differ