From ca28cc517083c5bb559fab86f4539c04635554f9 Mon Sep 17 00:00:00 2001 From: Kyle Robbertze Date: Fri, 21 May 2021 16:45:29 +0200 Subject: [PATCH] make release on tags draft --- .github/scripts/release.sh | 4 ---- .github/workflows/package-release.yml | 15 +++++++++------ .../workflows/{test-all-Ubuntu.yml => test.yml} | 0 3 files changed, 9 insertions(+), 10 deletions(-) rename .github/workflows/{test-all-Ubuntu.yml => test.yml} (100%) diff --git a/.github/scripts/release.sh b/.github/scripts/release.sh index f54c586e3..e1c53d6f9 100755 --- a/.github/scripts/release.sh +++ b/.github/scripts/release.sh @@ -25,10 +25,6 @@ fi echo "Creating tarball for LibreTime ${suffix}." -# Adding dos2unix package -apt update -y -q -apt install dos2unix php composer -y - echo -n "Creating VERSION file for ${suffix}..." echo -n "${suffix}" > ./VERSION echo " Done" diff --git a/.github/workflows/package-release.yml b/.github/workflows/package-release.yml index 7289dcc82..3519fe523 100644 --- a/.github/workflows/package-release.yml +++ b/.github/workflows/package-release.yml @@ -29,17 +29,20 @@ jobs: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} body: ${ steps.release_notes_file.outputs.contents } - draft: false - prerelease: false - - name: Build project # This would actually build your project - run: sudo bash ./.github/scripts/release.sh ${{ github.ref }} + draft: true + prerelease: true + - name: Build project + run: |- + sudo apt update -y -q + sudo apt install dos2unix php composer -y + ./.github/scripts/release.sh ${{ github.ref }} - name: Upload Release Asset - id: upload-release-asset + id: upload-release-asset uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps asset_path: ../libretime-${{ github.ref }}.tar.gz asset_name: libretime-${{ github.ref }}.tar.gz asset_content_type: application/tgz diff --git a/.github/workflows/test-all-Ubuntu.yml b/.github/workflows/test.yml similarity index 100% rename from .github/workflows/test-all-Ubuntu.yml rename to .github/workflows/test.yml