Skip to content

Commit

Permalink
Add verification step for export output in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyclo committed Jan 8, 2025
1 parent d345348 commit bb5f4e3
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/pipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ jobs:
run: npm run build
# Build the application using the `npm run build` command.

- name: Verify export output
run: ls -la ./out
# Verify that the `out` folder was created successfully.

# Task 2: Linting
lint:
runs-on: ubuntu-latest # Use the latest Ubuntu environment for linting.
Expand Down Expand Up @@ -128,24 +132,9 @@ jobs:
uses: actions/checkout@v2
# Check out the code from the repository.

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '21'
# Set up Node.js version 21 for the deployment process.

- name: Cache .next folder
uses: actions/cache@v3
with:
path: .next
key: ${{ runner.os }}-next-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-next-
# Cache the `.next` folder to reuse the build output during deployment.

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out # This is where the static files are located
# Deploy the static files from the `.next/static` directory to GitHub Pages.
publish_dir: ./out
# Deploy the static files from the `out` directory to GitHub Pages.

0 comments on commit bb5f4e3

Please sign in to comment.