-
-
Notifications
You must be signed in to change notification settings - Fork 5
86 lines (82 loc) · 2.33 KB
/
main.yml
File metadata and controls
86 lines (82 loc) · 2.33 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Deploy Manually
on:
workflow_dispatch:
inputs:
redeploy:
type: boolean
default: false
channel:
type: string
default: release
findBy:
type: string
default: ""
version:
type: string
default: "1.2.0"
changelog:
type: string
default: ""
versionsdbremote:
type: string
default: master
mcpelauncher-manifest:
type: string
default: ""
mcpelauncher-manifest-qt6:
type: string
default: ""
mcpelauncher-ui-manifest:
type: string
default: ""
mcpelauncher-ui-manifest-qt6:
type: string
default: ""
jobs:
build:
if: "!inputs.redeploy"
uses: ./.github/workflows/build-linux.yml
with:
channel: ${{ inputs.channel }}
version: ${{ inputs.version }}
changelog: ${{ inputs.changelog }}
versionsdbremote: ${{ inputs.versionsdbremote }}
shas: |-
{
"mcpelauncher-manifest": {
"": ${{ tojson(inputs.mcpelauncher-manifest || '') }},
"qt6": ${{ tojson(inputs.mcpelauncher-manifest-qt6 || '') }}
},
"mcpelauncher-ui-manifest": {
"": ${{ tojson(inputs.mcpelauncher-ui-manifest || '') }},
"qt6": ${{ tojson(inputs.mcpelauncher-ui-manifest-qt6 || '') }}
}
}
deploy:
if: "!failure() && !cancelled()"
permissions:
contents: read
pages: write
id-token: write
actions: read
needs: build
uses: ./.github/workflows/update-repo.yml
secrets: inherit
with:
channel: ${{ inputs.channel }}
findBy: ${{ inputs.findBy }}
update-version:
if: "!failure() && !cancelled() && !inputs.redeploy && inputs.channel == 'release'"
runs-on: ubuntu-latest
needs: deploy
steps:
- uses: actions/checkout@v3
- run: echo "${{ inputs.version }}" > version.txt
- name: Commit changes
run: |
# from https://github.com/orgs/community/discussions/26560
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git add .
git commit -m "Released ${{ inputs.version }}"
git push