Skip to content

Commit

Permalink
Create forced.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EgoMoose committed Nov 6, 2024
1 parent 99565b6 commit 3ec29ad
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/forced.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Forced Release

on:
workflow_dispatch:

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 playermodule playermodule upliftgames --package
rmdir "tool" /s /q
- name: Build release.rbxm
run: rojo build --output release.rbxm

- name: Git Auto Commit
uses: stefanzweifel/[email protected]
with:
commit_message: (${{ env.VERSION }})
tagging_message: ${{ env.VERSION }}
create_branch: true
branch: release

- name: Create release
uses: softprops/[email protected]
with:
files: release.rbxm
tag_name: ${{ env.VERSION }}

- name: Wally login
shell: pwsh
run: wally login --token ${{ secrets.WALLY_PUBLIC_PUBLISH_TOKEN }}

- name: Wally publish
run: wally publish
timeout-minutes: 5

0 comments on commit 3ec29ad

Please sign in to comment.