Skip to content

Commit 3ec29ad

Browse files
committed
Create forced.yml
1 parent 99565b6 commit 3ec29ad

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

.github/workflows/forced.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Forced Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
OWNER: UpliftGames
8+
REPO: pull-player-scripts
9+
10+
jobs:
11+
windows:
12+
runs-on: windows-latest
13+
14+
permissions:
15+
contents: write
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
ref: release
21+
22+
- uses: ok-nick/[email protected]
23+
24+
- uses: robinraju/[email protected]
25+
id: download_release
26+
with:
27+
repository: ${{ env.OWNER }}/${{ env.REPO }}
28+
out-file-path: "tool"
29+
fileName: "release.zip"
30+
latest: true
31+
32+
- name: Unzip release
33+
run: 7z x tool/release.zip -otool
34+
35+
- name: Run CLI tool
36+
shell: cmd
37+
run: |
38+
python tool playermodule playermodule upliftgames --package
39+
rmdir "tool" /s /q
40+
41+
- name: Build release.rbxm
42+
run: rojo build --output release.rbxm
43+
44+
- name: Git Auto Commit
45+
uses: stefanzweifel/[email protected]
46+
with:
47+
commit_message: (${{ env.VERSION }})
48+
tagging_message: ${{ env.VERSION }}
49+
create_branch: true
50+
branch: release
51+
52+
- name: Create release
53+
uses: softprops/[email protected]
54+
with:
55+
files: release.rbxm
56+
tag_name: ${{ env.VERSION }}
57+
58+
- name: Wally login
59+
shell: pwsh
60+
run: wally login --token ${{ secrets.WALLY_PUBLIC_PUBLISH_TOKEN }}
61+
62+
- name: Wally publish
63+
run: wally publish
64+
timeout-minutes: 5
65+

0 commit comments

Comments
 (0)