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- VITE_APP_API_URL = https://www.apirequest.in/movie/api
1+ VITE_APP_API_URL = https://www.apirequest.in/movie/api
Original file line number Diff line number Diff line change 1+ # Sample workflow for building and deploying a Vue 3 site to GitHub Pages
2+ #
3+ # To get started with Vue 3 see: https://vuejs.org/guide/quick-start.html
4+ #
5+ name : React Deployment
6+
7+ on :
8+ # Runs on pushes targeting the default branch
9+ push :
10+ branches : ["main"]
11+
12+ # Allows you to run this workflow manually from the Actions tab
13+ workflow_dispatch :
14+
15+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
16+ permissions :
17+ contents : read
18+ pages : write
19+ id-token : write
20+
21+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
23+ concurrency :
24+ group : " pages"
25+ cancel-in-progress : false
26+
27+ jobs :
28+ # Build job
29+ build :
30+ runs-on : ubuntu-latest
31+ steps :
32+ - name : Checkout
33+ uses : actions/checkout@v4
34+
35+ - name : Setup Node
36+ uses : actions/setup-node@v4
37+ with :
38+ node-version : " 20"
39+
40+ - name : Install dependencies
41+ run : npm i -f
42+
43+ - name : Install rollup
44+ run : npm install --save-dev rollup
45+
46+ - name : Build React app
47+ run : npm run build
48+
49+ - name : Upload artifact
50+ uses : actions/upload-pages-artifact@v3
51+ with :
52+ path : ./dist
53+
54+ # Deployment job
55+ deploy :
56+ environment :
57+ name : github-pages
58+ url : ${{ steps.deployment.outputs.page_url }}
59+ runs-on : ubuntu-latest
60+ needs : build
61+ steps :
62+ - name : Deploy to GitHub Pages
63+ id : deployment
64+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments