diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-01-02 21:50:52 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-01-02 21:50:52 -0500 |
commit | 24200165f06e2f67e158190ce1b5fe259ac24a85 (patch) | |
tree | bb8607c5323affa6ee1f2206f4b63b13c61670bb | |
parent | 9460219074de7080f57bb11ec90a4d833a93698d (diff) | |
download | lite-xl-plugin-manager-24200165f06e2f67e158190ce1b5fe259ac24a85.tar.gz lite-xl-plugin-manager-24200165f06e2f67e158190ce1b5fe259ac24a85.zip |
Testing new workflow.
-rw-r--r-- | .github/workflows/build.yml | 9 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | manifest.json | 6 |
3 files changed, 13 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9eeda14..69a3bde 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,9 @@ jobs: uses: actions/checkout@v3 with: { fetch-depth: 0 } - name: Set Environment Variables - run: echo VERSION=`git describe --tags --abbrev=0 | tail -c +2` >> $GITHUB_ENV && echo FULL_VERSION=`git describe --tags | tail -c +2` >> $GITHUB_ENV && echo REV=$((`git describe --tags | sed 's/.*-\([0-9]*\)-.*/\1/' | sed s/^v.*//` + 1)) >> $GITHUB_ENV + run: | + git config --global user.name "Github Actions" && git config --global user.email "adamdharrison@gmail.com" + echo VERSION=`git describe --tags --abbrev=0 | tail -c +2` >> $GITHUB_ENV && echo FULL_VERSION=`git describe --tags | tail -c +2` >> $GITHUB_ENV && echo REV=$((`git describe --tags | sed 's/.*-\([0-9]*\)-.*/\1/' | sed s/^v.*//` + 1)) >> $GITHUB_ENV - name: Clone Submodules run: git submodule update --init --depth=1 - name: Build Linux @@ -38,6 +40,10 @@ jobs: if [[ `git tag --points-at HEAD | head -c 1` == "v" ]]; then gh release delete -y $VERSION || true; gh release create -t v$VERSION v$VERSION lpm.x86_64-linux lpm.x86_64-windows.exe + gh release delete -y latest || true; + gh release create -t latest latest lpm.x86_64-linux lpm.x86_64-windows.exe + git branch -f latest HEAD + git push origin latest fi build_macos: @@ -61,4 +67,5 @@ jobs: gh release upload continuous *.tar.gz if [[ `git tag --points-at HEAD | head -c 1` == "v" ]]; then gh release upload v$VERSION lpm.x86_64-darwin + gh release upload latest lpm.x86_64-darwin fi @@ -1,7 +1,7 @@ # Lite XL Plugin Manager A standalone binary that provides an easy way of installing, and uninstalling -plugins from lite-xl, as well as different version fo lite-xl. +plugins from lite-xl, as well as different version of lite-xl. Can be used by a package manager plugin that works from inside the editor and calls this binary. @@ -26,7 +26,7 @@ For details about the `manifest.json` files that `lpm` consumes, The fastest way to get started with lpm is to simply pull a release. ``` - wget https://github.com/lite-xl/lite-xl-plugin-manager/releases/download/v0.92/lpm.x86_64-linux -O lpm && chmod +x lpm +wget https://github.com/lite-xl/lite-xl-plugin-manager/releases/download/latest/lpm.x86_64-linux -O lpm && chmod +x lpm ``` If you have a C compiler, and `git`, and want to compile from scratch, diff --git a/manifest.json b/manifest.json index 85240c0..2437a36 100644 --- a/manifest.json +++ b/manifest.json @@ -11,17 +11,17 @@ ], "files": [ { - "url": "https://github.com/adamharrison/lite-xl-plugin-manager/releases/download/v0.9/lpm.x86_64-linux", + "url": "https://github.com/adamharrison/lite-xl-plugin-manager/releases/download/latest/lpm.x86_64-linux", "arch": "x86_64-linux", "checksum": "SKIP" }, { - "url": "https://github.com/adamharrison/lite-xl-plugin-manager/releases/download/v0.9/lpm.x86_64-windows.exe", + "url": "https://github.com/adamharrison/lite-xl-plugin-manager/releases/download/latest/lpm.x86_64-windows.exe", "arch": "x86_64-windows", "checksum": "SKIP" }, { - "url": "https://github.com/adamharrison/lite-xl-plugin-manager/releases/download/v0.9/lpm.x86_64-darwin", + "url": "https://github.com/adamharrison/lite-xl-plugin-manager/releases/download/latest/lpm.x86_64-darwin", "arch": "x86_64-darwin", "checksum": "SKIP" } |