From 4e075cac01c2e47993cc575b1e740493aa0d3a65 Mon Sep 17 00:00:00 2001 From: Raul Gutierrez <72976701+Rayguti@users.noreply.github.com> Date: Tue, 26 Nov 2024 20:51:35 -0600 Subject: [PATCH] Update jekyll-gh-pages.yml --- .github/workflows/jekyll-gh-pages.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index 6d1efb4..8797d08 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -28,13 +28,30 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Setup Pages - uses: actions/configure-pages@v5 + + # Step to install Node.js and dependencies + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18.x' + + - name: Install dependencies + run: npm install + + # Build Angular project + - name: Build Angular project + run: npm run build --prod + env: + SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }} + SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }} + + # Step to build Jekyll - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: source: ./ destination: ./_site + - name: Upload artifact uses: actions/upload-pages-artifact@v3