File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Deploy tailwindcss
2-
1+ name : Deploy TailwindCSS
32on :
43 push :
54 branches :
65 - main
76
7+ workflow_dispatch :
8+
89permissions :
9- contents : read
10- pages : write
11- id-token : write
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ concurrency :
15+ group : ' pages'
16+ cancel-in-progress : true
1217
1318jobs :
14- build :
19+ deploy :
20+ environment :
21+ name : github-pages
22+ url : ${{ steps.deployment.outputs.page_url }}
1523 runs-on : ubuntu-latest
16-
1724 steps :
18- - name : Checkout repository
19- uses : actions/checkout@v4
25+ - name : Checkout repository
26+ uses : actions/checkout@v4
27+
28+ - name : Set up Node.js
29+ uses : actions/setup-node@v4
30+ with :
31+ node-version : ' 18'
32+
33+ - name : Install dependencies
34+ run : npm install
2035
21- - name : Set up Node.js
22- uses : actions/setup-node@v4
23- with :
24- node-version : ' 18'
36+ - name : Build project
37+ run : npm run build
2538
26- - name : Install dependencies
27- run : npm install
39+ - name : Setup Pages
40+ uses : actions/configure-pages@v4
2841
29- - name : Build project
30- run : npm run build
42+ - name : Upload artifact
43+ uses : actions/upload-pages-artifact@v1
44+ with :
45+ path : ' ./dist' # Ensure this matches your build output directory
3146
32- - name : Deploy to GitHub Pages
33- id : deployment
34- uses : actions/deploy-pages@v1
47+ - name : Deploy to GitHub Pages
48+ id : deployment
49+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments