Skip to content

Commit

Permalink
feat: create env file with build
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtrazy committed Aug 7, 2024
1 parent e7bfdc5 commit 7022f72
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,20 @@ jobs:
run: npm ci
- name: Build
run: npm run build
- name: Make envfile
uses: SpicyPizza/[email protected]
with:
envkey_VITE_API_URL: 'https://lafresca-api.ucsc.eu.org/api/lafresca'
envkey_VITE_UPLOAD_URL: ${{ secrets.UPLOAD_URL }}
envkey_COOKIE_PROTOCOL: 'https:'
file_name: .env
- name: Upload artifact
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
source: './dist'
source: './dist, .env'
target: '/var/www/lafresca-frontend/html'
rm: true

0 comments on commit 7022f72

Please sign in to comment.