Skip to content

Deploy to Aptible Prod #42

Deploy to Aptible Prod

Deploy to Aptible Prod #42

Workflow file for this run

name: Deploy to Aptible Prod
on:
workflow_dispatch:
inputs: { }
jobs:
deploy:
name: Deploy to aptible-prod
runs-on: ubuntu-latest
environment: prod
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Deploy to Aptible
uses: aptible/aptible-deploy-action@v4
with:
type: git
app: illinois-prod
environment: illinois-prod
username: ${{ secrets.APTIBLE_USERNAME }}
password: ${{ secrets.APTIBLE_PASSWORD }}
# Looking for secrets/variables for the application? Check the configuration tab in the Aptible app GUI
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: codeforamerica
SENTRY_PROJECT: il-gcc
with:
environment: production
version: ${{ github.ref }}
- name: Announce on Slack when deployed
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}