Skip to content

Commit adb17e0

Browse files
committed
upload on tag
1 parent 503d1fa commit adb17e0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Build
22

33
on:
44
push:
5-
branches: [ "master" ]
5+
tags:
6+
- '*'
67

78
jobs:
89

@@ -42,7 +43,7 @@ jobs:
4243
- name: "29.1"
4344
tarball: "https://ftp.gnu.org/gnu/emacs/emacs-29.1.tar.gz"
4445
tarball_dir: "emacs-29.1"
45-
- name: "29.1-native-json-rpc"
46+
- name: "29.1_native_json_rpc"
4647
repo: "blahgeek/emacs"
4748
commit: "b8e9c30dcae19eaa8deed9bd594e84d5cf6244cb"
4849
build_with_x11: [ "yes", "no" ]
@@ -82,3 +83,10 @@ jobs:
8283
- name: Run and package
8384
run: ./run-and-package.sh builder-image:latest ./emacs-src BUILD_WITH_X11=${{ matrix.build_with_x11 }} BUILD_RUN_AUTOGEN=${{ matrix.source.repo && 'yes' || 'no' }}
8485

86+
- name: Upload binary to release
87+
uses: svenstaro/upload-release-action@v2
88+
with:
89+
repo_token: ${{ secrets.GITHUB_TOKEN }}
90+
file: dist/Emacs.AppImage
91+
asset_name: Emacs-${{ matrix.source.name }}-${{ matrix.build_with_x11 == 'yes' && 'x11' || 'nox' }}.AppImage
92+
tag: ${{ github.ref }}

0 commit comments

Comments
 (0)