make release on tags draft
This commit is contained in:
parent
c7c62b1268
commit
ca28cc5170
|
@ -25,10 +25,6 @@ fi
|
||||||
|
|
||||||
echo "Creating tarball for LibreTime ${suffix}."
|
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 "Creating VERSION file for ${suffix}..."
|
||||||
echo -n "${suffix}" > ./VERSION
|
echo -n "${suffix}" > ./VERSION
|
||||||
echo " Done"
|
echo " Done"
|
||||||
|
|
|
@ -29,17 +29,20 @@ jobs:
|
||||||
tag_name: ${{ github.ref }}
|
tag_name: ${{ github.ref }}
|
||||||
release_name: Release ${{ github.ref }}
|
release_name: Release ${{ github.ref }}
|
||||||
body: ${ steps.release_notes_file.outputs.contents }
|
body: ${ steps.release_notes_file.outputs.contents }
|
||||||
draft: false
|
draft: true
|
||||||
prerelease: false
|
prerelease: true
|
||||||
- name: Build project # This would actually build your project
|
- name: Build project
|
||||||
run: sudo bash ./.github/scripts/release.sh ${{ github.ref }}
|
run: |-
|
||||||
|
sudo apt update -y -q
|
||||||
|
sudo apt install dos2unix php composer -y
|
||||||
|
./.github/scripts/release.sh ${{ github.ref }}
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
id: upload-release-asset
|
id: upload-release-asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
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_path: ../libretime-${{ github.ref }}.tar.gz
|
||||||
asset_name: libretime-${{ github.ref }}.tar.gz
|
asset_name: libretime-${{ github.ref }}.tar.gz
|
||||||
asset_content_type: application/tgz
|
asset_content_type: application/tgz
|
||||||
|
|
Loading…
Reference in New Issue