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 /.github | |
parent | 9460219074de7080f57bb11ec90a4d833a93698d (diff) | |
download | lite-xl-plugin-manager-24200165f06e2f67e158190ce1b5fe259ac24a85.tar.gz lite-xl-plugin-manager-24200165f06e2f67e158190ce1b5fe259ac24a85.zip |
Testing new workflow.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 9 |
1 files changed, 8 insertions, 1 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 |