-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.55 KB
/
release.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: TexturePackGenerator
on:
workflow_dispatch:
push:
tags:
- 'v1.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Delete Readme
run: |
rm README.md
- name: Generate ZIP
run: |
zip TexturePack -r ./*
- name: mv ZIP
run: |
mkdir upload && mv TexturePack.zip upload/
- name: Get latest release version tag number
id: get_version
uses: battila7/get-version-action@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.version }}
release_name: FelNullLauncher - ${{ steps.get_version.outputs.version }}
body: |
ダウンロードはこちらから!
[ダウンロード](https://github.com/${{ github.repository }}/releases/download/${{ steps.get_version.outputs.version }}/TexturePack.zip)
Build by ${{ github.actor }}
draft: false
prerelease: false
- uses: xresloader/upload-to-github-release@v1
name: Upload Release File
env:
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
with:
file: "upload"
tags: true
draft: false
tag_name: ${{ steps.get_version.outputs.version }}
- uses: actions/upload-artifact@v1
name: Actions Upload
with:
name: Release
path: upload