@cdwr/deploy-env-action
v0.1.4
Published
The Deploy Env Action will analyze the environment to deploy your Fly.io applications to.
Maintainers
Readme
Description
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.
Usage
Using the action is currently limited to this repository since the package isn't deployed.
[!TIP] The action will also provide
DEPLOY_ENVwhich 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