-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.17 KB
/
pull-request.yml
File metadata and controls
39 lines (35 loc) · 1.17 KB
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
name: Pull Request (Re-)Opened & Updated
on:
pull_request_target:
defaults:
run:
working-directory: remix
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
deploy-preview:
runs-on: ubuntu-latest
permissions:
pull-requests: write
env:
FIREBASE_SERVICE_ACCOUNT_KEY: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_FLIGHTPLOT_WEB }}"
SESSION_SECRET: ${{ secrets.SESSION_SECRET }}
DEPLOYMENT_NAME: ${{ github.head_ref }}
name: Deploy preview environment
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: install myke
run: |
wget -qO /usr/local/bin/myke https://github.com/omio-labs/myke/releases/download/v1.0.2/myke_linux_amd64
chmod +x /usr/local/bin/myke
myke --version
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: myke deploy-preview
- uses: mshick/add-pr-comment@v2
with:
message: |
✅ Preview environment deployed at https://flightplot-preview-${{ github.head_ref }}.fly.dev/
message-failure: |
❌ Preview environment deployment failed.