diff options
author | Adam <adamdharrison@gmail.com> | 2022-09-23 17:32:15 -0400 |
---|---|---|
committer | Adam <adamdharrison@gmail.com> | 2022-09-23 17:32:15 -0400 |
commit | a855552028430a601825e69f5477cbcb7c6e7e35 (patch) | |
tree | 71fd420640f391f9461d31038d8ad04899d2f6f8 /.github/workflows/build.yml | |
parent | 390895bca4705ecde93efa5d35729484ea47abb3 (diff) | |
download | lite-xl-plugin-manager-a855552028430a601825e69f5477cbcb7c6e7e35.tar.gz lite-xl-plugin-manager-a855552028430a601825e69f5477cbcb7c6e7e35.zip |
Updated version 0.1
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0d7c466..98b11ff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,5 +31,12 @@ jobs: env: { GITHUB_TOKEN: "${{ github.token }}" } run: | gh release delete -y continuous || true; gh release create -t 'Continuous Release' continuous *.zip *.tar.gz *.deb - [[ `git describe HEAD --tags --match=v* | head -c 4` == "v"* ]] && gh release delete -y `git describe HEAD --tags --match=v* | head -c 4` || true; - [[ `git describe HEAD --tags --match=v* | head -c 4` == "v"* ]] && gh release create -t `git describe HEAD --tags --match=v* | head -c 4` `git describe HEAD --tags --match=v* | head -c 4` lpm.x86_64-linux lpm.x86_64-windows.exe + if [[ `git tag --points-at HEAD | head -c 4` == "v"* ]]; then + export RELEASE=`git tag --points-at HEAD | head -c 4` + gh release delete -y $RELEASE || true; + gh release create -t $RELEASE $RELEASE lpm.x86_64-linux lpm.x86_64-windows.exe + git checkout master && cat manifest.json | jq ".plugins[0].files[0].checksum = "'"'"`sha256sum lpm.x86_64-linux | sed 's/ .*//'`"'"' | jq ".plugins[0].files[1].checksum = "'"'"`sha256sum lpm.x86_64-windows.exe | sed 's/ .*//'`"'"' > new-manifest.json + mv new-manifest.json manifest.json && git add manifest.json && git commit -m 'Updated manifest.json with updated release checksums.' && git push + fi + + |