mirror of
https://github.com/morgan9e/Signal-Desktop-AppImage
synced 2026-04-14 00:04:08 +09:00
Update build.yml
This commit is contained in:
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
@@ -1,21 +1,31 @@
|
|||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
repository_dispatch:
|
||||||
tags:
|
types: [external_build_trigger]
|
||||||
- 'v[0-9]+.[0-9]+.*'
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Get latest release
|
||||||
|
id: get_tag
|
||||||
|
run: |
|
||||||
|
LATEST_TAG=$(curl -s https://api.github.com/repos/signalapp/Signal-Desktop/releases/latest | jq -r '.tag_name')
|
||||||
|
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: signalapp/Signal-Desktop
|
||||||
|
ref: ${{ steps.get_tag.outputs.LATEST_TAG }}
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Install jq
|
- name: Install jq
|
||||||
run: |
|
run: |
|
||||||
apt update
|
sudo apt update
|
||||||
apt install -y jq
|
sudo apt install -y jq
|
||||||
|
|
||||||
- name: Add AppImage
|
- name: Add AppImage
|
||||||
run: |
|
run: |
|
||||||
@@ -23,7 +33,7 @@ jobs:
|
|||||||
cat package.json.orig | jq '.build.linux.target = ["AppImage", "tar.gz"]' > package.json
|
cat package.json.orig | jq '.build.linux.target = ["AppImage", "tar.gz"]' > package.json
|
||||||
|
|
||||||
- name: Read .nvmrc
|
- name: Read .nvmrc
|
||||||
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
|
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT
|
||||||
id: nvm
|
id: nvm
|
||||||
|
|
||||||
- name: Use Node.js ${{ steps.nvm.outputs.NODE_VERSION }}
|
- name: Use Node.js ${{ steps.nvm.outputs.NODE_VERSION }}
|
||||||
@@ -39,8 +49,7 @@ jobs:
|
|||||||
- name: Upload Build Artifacts
|
- name: Upload Build Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: linux-build
|
name: signal-desktop-${{ steps.get_tag.outputs.LATEST_TAG }}
|
||||||
path: |
|
path: |
|
||||||
release/*.AppImage
|
release/*.AppImage
|
||||||
release/*.tar.gz
|
release/*.tar.gz
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user