From ae77482e8f11880896ea204616a3ff5258039da5 Mon Sep 17 00:00:00 2001 From: brooke Date: Sun, 4 May 2025 12:55:29 -0400 Subject: [PATCH] update --- .github/workflows/build.yml | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 253d291..af19730 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,12 +2,12 @@ name: Build Linux AppImages on: push: - tags: - - "*" + branches: + - main jobs: build_linux_amd64: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 permissions: contents: write steps: @@ -15,11 +15,16 @@ jobs: uses: https://github.com/actions/checkout@v3 with: repository: liamcottle/reticulum-meshchat - ref: main path: reticulum-meshchat - - name: Set Working Directory - run: cd reticulum-meshchat + - name: Get Latest Tag + working-directory: ./reticulum-meshchat + run: | + git fetch --tags --quiet https://github.com/liamcottle/reticulum-meshchat + LATEST_TAG=$(git describe --tags --abbrev=0) + echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV + echo "Latest tag is $LATEST_TAG" + git checkout $LATEST_TAG - name: Install NodeJS uses: https://github.com/actions/setup-node@v3 @@ -49,6 +54,8 @@ jobs: id: create_release uses: https://github.com/ncipollo/release-action@v1 with: + tag: ${{ env.LATEST_TAG }} + name: ${{ env.LATEST_TAG }} draft: true allowUpdates: true replacesArtifacts: true @@ -57,7 +64,7 @@ jobs: artifacts: "reticulum-meshchat/dist/*-amd64-linux.AppImage" build_linux_aarch64: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 permissions: contents: write steps: @@ -65,9 +72,17 @@ jobs: uses: https://github.com/actions/checkout@v3 with: repository: liamcottle/reticulum-meshchat - ref: main path: reticulum-meshchat + - name: Get Latest Tag + working-directory: ./reticulum-meshchat + run: | + git fetch --tags --quiet https://github.com/liamcottle/reticulum-meshchat + LATEST_TAG=$(git describe --tags --abbrev=0) + echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV + echo "Latest tag is $LATEST_TAG" + git checkout $LATEST_TAG + - name: Install NodeJS uses: https://github.com/actions/setup-node@v3 with: @@ -101,6 +116,8 @@ jobs: id: create_release uses: https://github.com/ncipollo/release-action@v1 with: + tag: ${{ env.LATEST_TAG }} + name: ${{ env.LATEST_TAG }} draft: true allowUpdates: true replacesArtifacts: true