All checks were successful
Deploy FitLien services to Dev / Deploy to Dev (push) Successful in 19s
34 lines
871 B
YAML
34 lines
871 B
YAML
name: Deploy FitLien services to Dev
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
jobs:
|
|
deploy:
|
|
name: Deploy to Dev
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Clean install
|
|
run: npm clean-install
|
|
|
|
- name: Copy .env.example to .env
|
|
run: cp functions/.env.example functions/.env
|
|
|
|
- name: Replace MAILGUN_API_KEY in .env
|
|
run: |
|
|
sed -i "s/#{MAILGUN_API_KEY}#/${{ secrets.MAILGUN_API_KEY }}/" functions/.env
|
|
sed -i "s/#{MAILGUN_SERVER}#/${{ secrets.MAILGUN_SERVER }}/" functions/.env
|
|
sed -i "s/#{MAILGUN_FROM_ADDRESS}#/${{ secrets.MAILGUN_FROM_ADDRESS }}/" functions/.env
|
|
cat functions/.env
|