Skip to content

Commit

Permalink
Merge pull request #12 from oogunjob/fixing-env-ci-cd
Browse files Browse the repository at this point in the history
Fixing CI/CD for Deployment
  • Loading branch information
oogunjob authored Jan 27, 2024
2 parents 9ba75ec + b906c57 commit b759f72
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -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=""
18 changes: 12 additions & 6 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -24,6 +23,9 @@ concurrency:
group: "pages"
cancel-in-progress: false

env:


jobs:
# Build job
build:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b759f72

Please sign in to comment.