Skip to content

Commit

Permalink
Testing new workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamharrison committed Jan 3, 2023
1 parent 9460219 commit 2420016
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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
Expand Down Expand Up @@ -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:
Expand All @@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 2420016

Please sign in to comment.