GitHub action that analyzes which environment to deploy your Fly.io applications to.
This action will analyze which environment to deploy your Fly.io applications to.
It is intended to be used in a previous job before the Fly Deployment Action.
Important
This action is now superseded by Nx Pre-deploy Action, which provides environment detection plus affected apps analysis and multi-tenant support in a unified package.
This action remains available if you only need environment detection without the full pre-deployment analysis.
Using the action is currently limited to this repository since the package isn't deployed.
Tip
The action will also provide DEPLOY_ENV which can be used in other actions in the job
jobs:
deploy-env:
runs-on: ubuntu-latest
outputs:
environment: ${{ steps.environment.outputs.environment }}
steps:
# Checkout, install dependencies and tools...
# Build 'deploy-env-action' package...
- name: Determine environment
id: environment
uses: ./packages/deploy-env-action
fly-deployment:
needs: deploy-env
runs-on: ubuntu-latest
environment:
name: ${{ needs.deploy-env.outputs.environment }}
url: https://${{ steps.deployment.outputs.hostname }}
steps:
# Checkout, install dependencies and tools...
# Build 'nx-fly-deployment-action' package...
- name: Run Deployment to Fly
uses: ./packages/nx-fly-deployment-action