Skip to content

Commit 3953a06

Browse files
committed
Add a workflow for creating release
Signed-off-by: MURAOKA Taro <koron.kaoriya@gmail.com>
1 parent 518ffa0 commit 3953a06

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Create a release
2+
3+
on:
4+
push:
5+
branches: [ '**' ]
6+
tags:
7+
- '[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
8+
- '[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]-alpha.*'
9+
- '[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]-beta.*'
10+
11+
jobs:
12+
release:
13+
14+
runs-on: ubuntu-24.04
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v6
19+
20+
- name: Install packages
21+
run: |
22+
sudo apt install gettext vim
23+
24+
- name: Create an archive
25+
run: |
26+
make release ARCHIVE=vim-lang-ja-${{ github.ref_name }}
27+
28+
- name: Upload the archive
29+
uses: actions/upload-artifact@v6
30+
with:
31+
name: vim-lang-ja
32+
path:
33+
vim-lang-ja-*.tar.xz
34+
35+
# リリース(draft)を作成しファイルを添付する
36+
- name: Create a release
37+
if: startsWith(github.ref, 'refs/tags/')
38+
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
39+
with:
40+
draft: true
41+
prerelease: ${{ contains(github.ref_name, '-alpha.') || contains(github.ref_name, '-beta.') }}
42+
files: |
43+
vim-lang-ja-*.tar.xz
44+
fail_on_unmatched_files: true
45+
generate_release_notes: true
46+
append_body: true

0 commit comments

Comments
 (0)