Merge pull request #36 from profiq/feature/page-size-and-offset #11
Workflow file for this run
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
name: Deploy to production | |
on: | |
push: | |
tags: [ "v*" ] | |
permissions: | |
contents: read | |
jobs: | |
deploy: | |
name: Deploy app to PROD | |
runs-on: ubuntu-latest | |
environment: | |
name: prod | |
url: https://swapi.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 | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
- 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=production --token ${{ secrets.EDGIO_DEPLOY_TOKEN }} | |
- name: "Purge homepage" | |
working-directory: ./cdn-config | |
run: npx edgio cache-clear --property=swapi-elixir-profiq --organization=profiq --environment=production --token ${{ secrets.EDGIO_DEPLOY_TOKEN }} --path=/ | |