Skip to content

Commit

Permalink
Document stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
nicojs committed Mar 14, 2024
1 parent d9898bc commit 0f11d61
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,22 @@ jobs:
- name: npm install, build, and test
run: |
pnpm i
cp .env.example .env
cp .env.example .env # an env file is needed for `build`
pnpm run db:generate
pnpm build
rm -rf node_modules/
# we want to delete the node_modules, as they will also contain `devDependencies`
# Note: `pnpm prune --prod` is not enough, as that will keep all dev dependencies installed inside `node_modules/.pnpm`
rm -rf node_modules/
# This will install all "dependencies" (excluding "devDependencies")
pnpm i --prod
rm .env
- name: Zip artifact for deployment
# `-y`: means preserve symlinks.
# `./*`: the current directory
# `.next`: explicitly also zip this hidden directory.
# `-r`: recursive
run: zip -y release.zip ./* .next -r
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 0f11d61

Please sign in to comment.