Release #307
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
mkdir -p $env:USERPROFILE/.wally | |
echo '${{ secrets.WALLY_PUBLISHING_TOML }}' > $env:USERPROFILE/.wally/auth.toml | |
- name: Wally publish | |
if: ${{ steps.verify-changed-files.outputs.files_changed == 'true' || github.event_name == 'workflow_dispatch' }} | |
run: wally publish | |
timeout-minutes: 5 | |