Skip to content

Deploy

Deploy #20

Workflow file for this run

name: Deploy
concurrency: production
on: workflow_dispatch
jobs:
deployment:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
- run: npm ci
- run: npm run build
- name: Install Cloud Foundry
run: curl -L "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=v8&source=github" | tar -zx
- name: Cloud Foundry Auth
env:
CF_USERNAME: ${{ secrets.CLOUD_GOV_DEPLOY_USERNAME }}
CF_PASSWORD: ${{ secrets.CLOUD_GOV_DEPLOY_PASSWORD }}
run: ./cf login -a api.fr.cloud.gov -u ${CF_USERNAME} -p ${CF_PASSWORD}
- run: ./cf push
- name: Post Slack Message
run: |
curl --header "Content-Type: application/json" \
--request POST \
--data '{"user": "${{github.actor}}", "prototype_url": "https://verify-prototype.fr.cloud.gov/", "commit_url": "${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}"}' \
https://hooks.slack.com/triggers/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