Skip to content

Restructure the project into semantic folders #281

Restructure the project into semantic folders

Restructure the project into semantic folders #281

Workflow file for this run

name: Release
on:
pull_request:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Roblox/setup-foreman@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Remove spec files
run: rm -rf **/*.spec.lua
- name: Install packages
run: wally install
- name: Get model file name
run: |
name=$(jq -r .name default.project.json)
echo "MODEL_FILE=$name.rbxm" >> $GITHUB_ENV
- name: Build
run: rojo build -o ${{ env.MODEL_FILE }}
- uses: softprops/action-gh-release@v1
if: ${{ github.event.release }}
with:
files: ${{ env.MODEL_FILE }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}