From ec6d0532c8b7247bdff42849678f818acc986678 Mon Sep 17 00:00:00 2001 From: jgmdev Date: Tue, 11 Oct 2022 00:02:12 -0400 Subject: [PATCH] release: linux build in ubuntu 18.04 fixes #1147 This change also properly fixes the double release creation issue due to the upload files process not sepcifying the draft flag. Also added update tag step so the tag gets updated to latest commit and is easier to kick new builds for pre releases without having to create a new release. --- .github/workflows/release.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bc2f2e67..90762939 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,10 @@ name: Release on: + push: + tags: + - v[0-9]+.* + workflow_dispatch: inputs: version: @@ -11,7 +15,7 @@ on: jobs: release: name: Create Release - runs-on: ubuntu-20.04 + runs-on: ubuntu-18.04 outputs: upload_url: ${{ steps.create_release.outputs.upload_url }} version: ${{ steps.tag.outputs.version }} @@ -26,6 +30,12 @@ jobs: else echo ::set-output name=version::${GITHUB_REF/refs\/tags\//} fi + - name: Update Tag + uses: richardsimko/update-tag@v1 + with: + tag_name: ${{ steps.tag.outputs.version }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create Release id: create_release uses: softprops/action-gh-release@v1 @@ -33,14 +43,13 @@ jobs: tag_name: ${{ steps.tag.outputs.version }} name: Lite XL ${{ steps.tag.outputs.version }} draft: true - prerelease: false body_path: changelog.md generate_release_notes: true build_linux: name: Linux needs: release - runs-on: ubuntu-20.04 + runs-on: ubuntu-18.04 env: CC: gcc CXX: g++ @@ -76,6 +85,7 @@ jobs: uses: softprops/action-gh-release@v1 with: tag_name: ${{ needs.release.outputs.version }} + draft: true files: | lite-xl-${{ env.INSTALL_REF }}-linux-x86_64-portable.tar.gz lite-xl-${{ env.INSTALL_REF }}-addons-linux-x86_64-portable.tar.gz @@ -121,6 +131,7 @@ jobs: uses: softprops/action-gh-release@v1 with: tag_name: ${{ needs.release.outputs.version }} + draft: true files: | ${{ env.INSTALL_NAME }}.dmg ${{ env.INSTALL_NAME_ADDONS }}.dmg @@ -176,6 +187,7 @@ jobs: uses: softprops/action-gh-release@v1 with: tag_name: ${{ needs.release.outputs.version }} + draft: true files: | ${{ env.INSTALL_NAME }}.zip ${{ env.INSTALL_NAME_ADDONS }}.zip