Skip to content

Commit

Permalink
Setup workflow to publish production plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
vocksel committed Nov 21, 2024
1 parent a75cfdc commit 9bc6712
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main

jobs:
publish:
publish-github-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -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'
Expand All @@ -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 }}

0 comments on commit 9bc6712

Please sign in to comment.