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.
This commit is contained in:
parent
63885cb2d6
commit
ec6d0532c8
|
@ -1,6 +1,10 @@
|
||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- v[0-9]+.*
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
|
@ -11,7 +15,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Create Release
|
name: Create Release
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-18.04
|
||||||
outputs:
|
outputs:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
version: ${{ steps.tag.outputs.version }}
|
version: ${{ steps.tag.outputs.version }}
|
||||||
|
@ -26,6 +30,12 @@ jobs:
|
||||||
else
|
else
|
||||||
echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
|
echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
|
||||||
fi
|
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
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
@ -33,14 +43,13 @@ jobs:
|
||||||
tag_name: ${{ steps.tag.outputs.version }}
|
tag_name: ${{ steps.tag.outputs.version }}
|
||||||
name: Lite XL ${{ steps.tag.outputs.version }}
|
name: Lite XL ${{ steps.tag.outputs.version }}
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: false
|
|
||||||
body_path: changelog.md
|
body_path: changelog.md
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
|
|
||||||
build_linux:
|
build_linux:
|
||||||
name: Linux
|
name: Linux
|
||||||
needs: release
|
needs: release
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-18.04
|
||||||
env:
|
env:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CXX: g++
|
CXX: g++
|
||||||
|
@ -76,6 +85,7 @@ jobs:
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ needs.release.outputs.version }}
|
tag_name: ${{ needs.release.outputs.version }}
|
||||||
|
draft: true
|
||||||
files: |
|
files: |
|
||||||
lite-xl-${{ env.INSTALL_REF }}-linux-x86_64-portable.tar.gz
|
lite-xl-${{ env.INSTALL_REF }}-linux-x86_64-portable.tar.gz
|
||||||
lite-xl-${{ env.INSTALL_REF }}-addons-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
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ needs.release.outputs.version }}
|
tag_name: ${{ needs.release.outputs.version }}
|
||||||
|
draft: true
|
||||||
files: |
|
files: |
|
||||||
${{ env.INSTALL_NAME }}.dmg
|
${{ env.INSTALL_NAME }}.dmg
|
||||||
${{ env.INSTALL_NAME_ADDONS }}.dmg
|
${{ env.INSTALL_NAME_ADDONS }}.dmg
|
||||||
|
@ -176,6 +187,7 @@ jobs:
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ needs.release.outputs.version }}
|
tag_name: ${{ needs.release.outputs.version }}
|
||||||
|
draft: true
|
||||||
files: |
|
files: |
|
||||||
${{ env.INSTALL_NAME }}.zip
|
${{ env.INSTALL_NAME }}.zip
|
||||||
${{ env.INSTALL_NAME_ADDONS }}.zip
|
${{ env.INSTALL_NAME_ADDONS }}.zip
|
||||||
|
|
Loading…
Reference in New Issue