Add protocol prefix to check_origin
#20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 }} |