diff --git a/.env.example b/.env.example index 09e219d..60689c4 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,3 @@ NEXT_PUBLIC_APPLE_DEVELOPER_TOKEN="" -NEXT_PUBLIC_MUSIC_USER_TOKEN="" NEXT_PUBLIC_CLIENT_ID="" -NEXT_PUBLIC_CLIENT_SECRET="" NEXT_PUBLIC_REDIRECT_URI="" \ No newline at end of file diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 41ae2f5..c5c699f 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -1,13 +1,12 @@ -# Sample workflow for building and deploying a Next.js site to GitHub Pages -# -# To get started with Next.js see: https://nextjs.org/docs/getting-started -# name: Deploy Next.js site to Pages on: - # Runs on pushes targeting the default branch + pull_request: + branches: + - master push: - branches: ["master"] + branches: + - master # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -24,6 +23,9 @@ concurrency: group: "pages" cancel-in-progress: false +env: + + jobs: # Build job build: @@ -75,6 +77,10 @@ jobs: run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} - name: Build with Next.js run: ${{ steps.detect-package-manager.outputs.runner }} next build + env: + NEXT_PUBLIC_APPLE_DEVELOPER_TOKEN: ${{ secrets.NEXT_PUBLIC_APPLE_DEVELOPER_TOKEN }} + NEXT_PUBLIC_CLIENT_ID: ${{ secrets.NEXT_PUBLIC_CLIENT_ID }} + NEXT_PUBLIC_REDIRECT_URI: ${{ secrets.NEXT_PUBLIC_REDIRECT_URI }} - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: