From 9bc671277c38fce9ee55645c4d28c4d644941b11 Mon Sep 17 00:00:00 2001 From: Marin Minnerly Date: Thu, 21 Nov 2024 06:33:22 -0800 Subject: [PATCH] Setup workflow to publish production plugin --- .github/workflows/release.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 779c6eea..e00f99e8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ on: - main jobs: - publish: + publish-github-release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -36,6 +36,24 @@ jobs: 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' @@ -51,4 +69,4 @@ jobs: run: lune run wally-install - name: Publish to Creator Store - run: lune run publish-plugin -- --apiKey ${{ secrets.ROBLOX_API_KEY }} + run: lune run publish-plugin -- --target dev --apiKey ${{ secrets.ROBLOX_API_KEY }}