update
This commit is contained in:
parent
8a73ae05af
commit
ae77482e8f
1 changed files with 25 additions and 8 deletions
33
.github/workflows/build.yml
vendored
33
.github/workflows/build.yml
vendored
|
@ -2,12 +2,12 @@ name: Build Linux AppImages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
branches:
|
||||||
- "*"
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_linux_amd64:
|
build_linux_amd64:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
|
@ -15,11 +15,16 @@ jobs:
|
||||||
uses: https://github.com/actions/checkout@v3
|
uses: https://github.com/actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: liamcottle/reticulum-meshchat
|
repository: liamcottle/reticulum-meshchat
|
||||||
ref: main
|
|
||||||
path: reticulum-meshchat
|
path: reticulum-meshchat
|
||||||
|
|
||||||
- name: Set Working Directory
|
- name: Get Latest Tag
|
||||||
run: cd reticulum-meshchat
|
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
|
- name: Install NodeJS
|
||||||
uses: https://github.com/actions/setup-node@v3
|
uses: https://github.com/actions/setup-node@v3
|
||||||
|
@ -49,6 +54,8 @@ jobs:
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: https://github.com/ncipollo/release-action@v1
|
uses: https://github.com/ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
|
tag: ${{ env.LATEST_TAG }}
|
||||||
|
name: ${{ env.LATEST_TAG }}
|
||||||
draft: true
|
draft: true
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
replacesArtifacts: true
|
replacesArtifacts: true
|
||||||
|
@ -57,7 +64,7 @@ jobs:
|
||||||
artifacts: "reticulum-meshchat/dist/*-amd64-linux.AppImage"
|
artifacts: "reticulum-meshchat/dist/*-amd64-linux.AppImage"
|
||||||
|
|
||||||
build_linux_aarch64:
|
build_linux_aarch64:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
|
@ -65,9 +72,17 @@ jobs:
|
||||||
uses: https://github.com/actions/checkout@v3
|
uses: https://github.com/actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: liamcottle/reticulum-meshchat
|
repository: liamcottle/reticulum-meshchat
|
||||||
ref: main
|
|
||||||
path: reticulum-meshchat
|
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
|
- name: Install NodeJS
|
||||||
uses: https://github.com/actions/setup-node@v3
|
uses: https://github.com/actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
|
@ -101,6 +116,8 @@ jobs:
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: https://github.com/ncipollo/release-action@v1
|
uses: https://github.com/ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
|
tag: ${{ env.LATEST_TAG }}
|
||||||
|
name: ${{ env.LATEST_TAG }}
|
||||||
draft: true
|
draft: true
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
replacesArtifacts: true
|
replacesArtifacts: true
|
||||||
|
|
Loading…
Add table
Reference in a new issue