diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a2f08b50..e00f99e8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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' @@ -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 }}