Skip to content

Inject build information when compiling #480

Inject build information when compiling

Inject build information when compiling #480

Workflow file for this run

name: Release
on:
pull_request:
release:
types: [published]
push:
branches:
- main
jobs:
publish-github-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Roblox/setup-foreman@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Get model file name
run: |
name=$(jq -r .name default.project.json)
echo "MODEL_FILE=$name.rbxm" >> $GITHUB_ENV
- name: Install packages
run: lune run wally-install
- name: Build
run: lune run build -- --target prod --output ${{ env.MODEL_FILE }}
- uses: softprops/action-gh-release@v1
if: ${{ github.event.release }}
with:
files: ${{ env.MODEL_FILE }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-plugin:
runs-on: ubuntu-latest
if: github.event.release
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: Roblox/setup-foreman@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install packages
run: lune run wally-install
- name: Publish to Creator Store
if: ${{ github.event.release }}
run: lune run publish-plugin -- --target prod --apiKey ${{ secrets.ROBLOX_API_KEY }}
publish-plugin-nightly:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: Roblox/setup-foreman@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install packages
run: lune run wally-install
- name: Publish to Creator Store
run: lune run publish-plugin -- --target dev --apiKey ${{ secrets.ROBLOX_API_KEY }}