Skip to content

Merge pull request #25 from profiq/feature/fix-cdn-websocket #14

Merge pull request #25 from profiq/feature/fix-cdn-websocket

Merge pull request #25 from profiq/feature/fix-cdn-websocket #14

Workflow file for this run

# 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 }}