Remove Digital Products section from site #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to Vercel | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - "**" | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: production | |
| env: | |
| VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
| permissions: | |
| contents: read | |
| deployments: write | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 2 | |
| - name: Debug Info | |
| run: | | |
| echo "Checking environment variables..." | |
| echo "VERCEL_TOKEN exists: ${{ env.VERCEL_TOKEN != '' }}" | |
| echo "VERCEL_ORG_ID exists: ${{ env.VERCEL_ORG_ID != '' }}" | |
| echo "VERCEL_PROJECT_ID exists: ${{ env.VERCEL_PROJECT_ID != '' }}" | |
| - name: Setup Hugo | |
| uses: peaceiris/actions-hugo@v2 | |
| with: | |
| hugo-version: "0.135.0" | |
| extended: true | |
| - name: Install Dependencies | |
| run: npm install | |
| - name: Build | |
| run: hugo --minify | |
| - name: Deploy to Vercel | |
| env: | |
| VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
| uses: amondnet/vercel-action@v25 | |
| with: | |
| vercel-token: ${{ env.VERCEL_TOKEN }} | |
| vercel-org-id: ${{ env.VERCEL_ORG_ID }} | |
| vercel-project-id: ${{ env.VERCEL_PROJECT_ID }} | |
| working-directory: ./ | |
| vercel-args: "--prod" |