Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-publish to production #286

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ on:
pull_request:
release:
types: [published]
push:
branches:
- main

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