-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (35 loc) · 1.19 KB
/
deploy-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Build and deploy
on:
push:
branches: [ "main" ]
permissions:
contents: read
jobs:
deploy-dev:
name: Deploy app to DEV
runs-on: ubuntu-latest
environment:
name: dev
url: https://swapi-dev.profiq.com
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: ./cdn-config/package-lock.json
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only -c fly-dev.toml
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_DEV }}
- name: "Install deps"
working-directory: ./cdn-config
run: npm install
- name: "Deploy CND Config"
working-directory: ./cdn-config
# Deploys new config and also purges cache
run: npx edgio deploy --property=swapi-elixir-profiq --organization=profiq --environment=dev --purge-cache-on-deploy --token ${{ secrets.EDGIO_DEPLOY_TOKEN }}