Skip to content

Commit d25f4a6

Browse files
[Deno Deploy] Update .github/workflows/deploy.yml
1 parent ae97d1c commit d25f4a6

File tree

1 file changed

+9
-40
lines changed

1 file changed

+9
-40
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ on:
66
branches: main
77

88
jobs:
9-
deploy-to-deno:
10-
name: Deploy to Deno
9+
deploy:
10+
name: Deploy
1111
runs-on: ubuntu-latest
12-
environment: 'production'
1312

1413
permissions:
1514
id-token: write # Needed for auth with Deno Deploy
@@ -30,46 +29,16 @@ jobs:
3029
node-version: lts/*
3130

3231
- name: Install step
33-
run: 'npm install'
34-
35-
- name: Create .env.production
36-
run: |
37-
echo "VITE_API_URL=${{ secrets.VITE_API_URL }}" > .env.production
32+
run: "npm install"
3833

3934
- name: Build step
40-
run: 'npm run build'
35+
run: "npm run build"
4136

4237
- name: Upload to Deno Deploy
4338
uses: denoland/deployctl@v1
4439
with:
45-
project: 'lift-frontend'
46-
entrypoint: 'https://deno.land/[email protected]/http/file_server.ts'
47-
root: 'dist'
48-
49-
# deploy-to-github-pages:
50-
# name: Deploy to GitHub Pages.
51-
# runs-on: ubuntu-latest
52-
# needs: deploy-to-deno # Ensures Deno Deploy finishes first
53-
54-
# steps:
55-
# - name: Clone repository
56-
# uses: actions/checkout@v4
57-
58-
# - name: Install Node.js
59-
# uses: actions/setup-node@v4
60-
# with:
61-
# node-version: lts/*
62-
63-
# - name: Install dependencies
64-
# run: npm install
65-
66-
# - name: Build project
67-
# run: npm run build
68-
69-
# - name: Deploy to GitHub Pages
70-
# uses: peaceiris/actions-gh-pages@v3
71-
# with:
72-
# github_token: ${{ secrets.GITHUB_TOKEN }}
73-
# publish_dir: ./dist
74-
# publish_branch: gh-pages # Ensure it's pushing to the correct branch
75-
# force_orphan: true # Ensure it overwrites the previous deployment.
40+
project: "lift-frontend"
41+
entrypoint: "https://deno.land/[email protected]/http/file_server.ts"
42+
root: "dist"
43+
44+

0 commit comments

Comments
 (0)