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:
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue