Rebrand to Swatch
#15
Workflow file for this run
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: | |
pull_request: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: extractions/setup-just@v1 | |
- uses: Roblox/setup-foreman@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- run: just init | |
- name: Remove spec files | |
run: rm -rf **/*.spec.lua | |
- name: Get model file name | |
run: | | |
name=$(just _get-plugin-name) | |
echo "MODEL_FILE=$name.rbxm" >> $GITHUB_ENV | |
- name: Build | |
run: just build-here prod ${{ env.MODEL_NAME }} | |
- uses: softprops/action-gh-release@v1 | |
if: ${{ github.event.release }} | |
with: | |
files: ${{ env.MODEL_FILE }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |