forked from RatherBeLunar/LRA-Community-Edition
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.97 KB
/
Create-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
name: Create Release
on: workflow_dispatch
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Get next version
uses: reecetech/[email protected]
id: version
with:
scheme: calver
increment: patch
- name: Make Changelog
uses: johnyherangi/[email protected]
id: create-release-notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ steps.version.outputs.version }}
release_name: LineRider game auto-release ${{ steps.version.outputs.version }}
body: |
LineRider auto-release ${{ steps.version.outputs.version }}. Get it on Pi-Apps!
If you would like to update your build of LineRider, either wait for Pi-Apps to do it, or run this command in your HOME directory:
```
rm -rf LineRider && sudo rm -rf /opt/LineRider && sudo mkdir /opt/LineRider && cd /opt/LineRider && sudo wget -O linerider.zip "https://github.com/Sussy-OS/LRA-Community-Edition/releases/download/${{ steps.version.outputs.version }}/LineRider.game.auto-release.${{ steps.version.outputs.version }}-LR.zip" && sudo unzip linerider.zip && sudo rm linerider.zip
```
## Changelog:
${{ steps.create-release-notes.outputs.release-notes }}
draft: false
prerelease: false
- name: Invoke workflow without inputs
uses: benc-uk/[email protected]
with:
workflow: Upload Files
token: ${{ secrets.PERSONAL_TOKEN }}