Skip to content

Commit ff797d8

Browse files
updates
1 parent 420e482 commit ff797d8

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Builds this Next.js app and deploys static output (out/) to GitHub Pages.
2+
# Repository root should be this proxytechsupport-nextjs folder.
3+
4+
name: Deploy to GitHub Pages
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
- master
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
concurrency:
19+
group: github-pages-${{ github.workflow }}
20+
cancel-in-progress: false
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- uses: actions/setup-node@v4
30+
with:
31+
node-version: '22'
32+
cache: npm
33+
cache-dependency-path: package-lock.json
34+
35+
- run: npm ci
36+
- run: npm run build
37+
38+
- uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: out
41+
42+
deploy:
43+
runs-on: ubuntu-latest
44+
needs: build
45+
46+
environment:
47+
name: github-pages
48+
url: ${{ steps.deploy.outputs.page_url }}
49+
50+
steps:
51+
- id: deploy
52+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)