diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-03-03 19:03:05 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-03-03 19:03:05 -0500 |
commit | 6639d1ec90f94db27c20a69dd7322334c3a0f527 (patch) | |
tree | f77b995a3320b1a9626a542f3d64a3eac0b0a3ec /.github/workflows | |
parent | ca1b1e307b0a82b5e500d3139e91811b1a76340d (diff) | |
download | lite-xl-plugin-manager-6639d1ec90f94db27c20a69dd7322334c3a0f527.tar.gz lite-xl-plugin-manager-6639d1ec90f94db27c20a69dd7322334c3a0f527.zip |
Check to see if new github action works.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2c80024..8d88dd8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,12 +45,20 @@ jobs: - name: Create Release(s) env: { GITHUB_TOKEN: "${{ github.token }}", ARTIFACTS: "lpm.x86_64-linux lpm.riscv64-linux lpm.x86_64-windows.exe lpm.arm-android lpm.aarch64-android lpm.x86-android lpm.x86_64-android" } run: | - gh release delete -y continuous || true; gh release create -t 'Continuous Release' continuous $ARTIFACTS + perl -MFile::Slurp -pe 'last if $_ =~ m/^\s*#/ && $_ !~ m/#\s*$ENV{VERSION}/' < CHANGELOG.md > NOTES.md + gh release delete -y continuous || true; gh release create -t 'Continuous Release' -F NOTES.md continuous $ARTIFACTS if [[ `git tag --points-at HEAD v* | head -c 1` == "v" ]]; then gh release delete -y v$VERSION || true; - gh release create -t v$VERSION v$VERSION $ARTIFACTS + gh release create -t v$VERSION -F NOTES.md v$VERSION $ARTIFACTS gh release delete -y latest || true; - gh release create -t latest latest $ARTIFACTS + gh release create -t latest -F NOTES.md latest $ARTIFACTS + fi + - name: Discord Notification + env: { DISCORD_WEBHOOK: "${{ secrets.DISCORD_WEBHOOK }}" } + run: | + if [[ `git tag --points-at HEAD v* | head -c 1` == "v" ]]; then + perl -MFile::Slurp -e 'use JSON qw(encode_json from_json); print encode_json({ content => "## Lite XL Plugin Manager $ENV{VERSION} has been released!\nhttps://github.com/lite-xl/lite-xl-plugin-manager/releases/tag/v$ENV{VERSION}\n\n### Changes in $ENV{VERSION}:\n" . read_file("NOTES.md") })' | + curl -H 'Content-Type:application/json' $DISCORD_WEBHOOK -X POST -d "$(</dev/stdin)" fi build_macos: @@ -84,3 +92,4 @@ jobs: fi git tag -f continuous git push -f origin refs/tags/continuous + |