-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (61 loc) · 2.19 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Release
on:
workflow_dispatch:
schedule:
- cron: '0 */12 * * *'
env:
OWNER: UpliftGames
REPO: pull-player-scripts
jobs:
windows:
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
ref: release
- uses: ok-nick/[email protected]
- uses: robinraju/[email protected]
id: download_release
with:
repository: ${{ env.OWNER }}/${{ env.REPO }}
out-file-path: "tool"
fileName: "release.zip"
latest: true
- name: Unzip release
run: 7z x tool/release.zip -otool
- name: Run CLI tool
shell: cmd
run: |
python tool rbxcharactersounds rbxcharactersounds upliftgames --package
rmdir "tool" /s /q
- name: Build release.rbxm
run: rojo build --output release.rbxm
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v14
id: verify-changed-files
with:
files: src/RbxCharacterSounds
- name: Git Auto Commit
if: ${{ steps.verify-changed-files.outputs.files_changed == 'true' || github.event_name == 'workflow_dispatch' }}
uses: stefanzweifel/[email protected]
with:
commit_message: (${{ env.VERSION }})
tagging_message: ${{ env.VERSION }}
create_branch: true
branch: release
- name: Create release
if: ${{ steps.verify-changed-files.outputs.files_changed == 'true' || github.event_name == 'workflow_dispatch' }}
uses: softprops/[email protected]
with:
files: release.rbxm
tag_name: ${{ env.VERSION }}
- name: Wally login
if: ${{ steps.verify-changed-files.outputs.files_changed == 'true' || github.event_name == 'workflow_dispatch' }}
shell: pwsh
run: wally login --token ${{ secrets.WALLY_PUBLIC_PUBLISH_TOKEN }}
- name: Wally publish
if: ${{ steps.verify-changed-files.outputs.files_changed == 'true' || github.event_name == 'workflow_dispatch' }}
run: wally publish
timeout-minutes: 5