31
31
- name : Install step
32
32
run : ' npm install'
33
33
34
+ - name : Create .env.production
35
+ run : |
36
+ echo "VITE_API_URL=${{ secrets.VITE_API_URL }}" > .env.production
37
+
34
38
- name : Build step
35
39
run : ' npm run build'
36
40
@@ -41,30 +45,30 @@ jobs:
41
45
entrypoint :
' https://deno.land/[email protected] /http/file_server.ts'
42
46
root : ' dist'
43
47
44
- deploy-to-github-pages :
45
- name : Deploy to GitHub Pages.
46
- runs-on : ubuntu-latest
47
- needs : deploy-to-deno # Ensures Deno Deploy finishes first
48
+ # deploy-to-github-pages:
49
+ # name: Deploy to GitHub Pages.
50
+ # runs-on: ubuntu-latest
51
+ # needs: deploy-to-deno # Ensures Deno Deploy finishes first
48
52
49
- steps :
50
- - name : Clone repository
51
- uses : actions/checkout@v4
53
+ # steps:
54
+ # - name: Clone repository
55
+ # uses: actions/checkout@v4
52
56
53
- - name : Install Node.js
54
- uses : actions/setup-node@v4
55
- with :
56
- node-version : lts/*
57
+ # - name: Install Node.js
58
+ # uses: actions/setup-node@v4
59
+ # with:
60
+ # node-version: lts/*
57
61
58
- - name : Install dependencies
59
- run : npm install
62
+ # - name: Install dependencies
63
+ # run: npm install
60
64
61
- - name : Build project
62
- run : npm run build
65
+ # - name: Build project
66
+ # run: npm run build
63
67
64
- - name : Deploy to GitHub Pages
65
- uses : peaceiris/actions-gh-pages@v3
66
- with :
67
- github_token : ${{ secrets.GITHUB_TOKEN }}
68
- publish_dir : ./dist
69
- publish_branch : gh-pages # Ensure it's pushing to the correct branch
70
- force_orphan : true # Ensure it overwrites the previous deployment.
68
+ # - name: Deploy to GitHub Pages
69
+ # uses: peaceiris/actions-gh-pages@v3
70
+ # with:
71
+ # github_token: ${{ secrets.GITHUB_TOKEN }}
72
+ # publish_dir: ./dist
73
+ # publish_branch: gh-pages # Ensure it's pushing to the correct branch
74
+ # force_orphan: true # Ensure it overwrites the previous deployment.
0 commit comments