-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.16 KB
/
deploy-to-prod.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 }}