-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (38 loc) · 1.47 KB
/
releaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: releaser
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+alpha[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+beta[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+rc[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Get the version
id: get_version
shell: bash
run: |
echo "tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- name: Build
shell: bash
run: |
docker run --net host -i -v .:/root/repo -w /root/repo ubuntu:jammy /bin/bash -c 'apt update && apt install -y git curl && git config --global --add safe.directory /root/repo && bash build.bash --skip-tests --zip'
sudo mv build/Release/dist/Release.zip build/Release/dist/gcmzdrops_${{ steps.get_version.outputs.tag }}.zip
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.get_version.outputs.tag }}
draft: true
prerelease: false
files: build/Release/dist/*
body: |
### ダウンロード
- [gcmzdrops_${{ steps.get_version.outputs.tag }}.zip](https://github.com/oov/aviutl_gcmzdrops/releases/download/${{ steps.get_version.outputs.tag }}/gcmzdrops_${{ steps.get_version.outputs.tag }}.zip)
### 変更点
- ****