-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (34 loc) · 1.06 KB
/
build-previews.yml
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: Netlify Preview Deploy
on:
pull_request:
types: ['opened', 'edited', 'synchronize']
concurrency:
group: preview-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
deploy:
name: 'Deploy'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Prepare Deploy
uses: ./.github/actions/prepare-deploy
with:
main-branch-name: ${{ github.base_ref || github.ref_name }}
app-configuration: preview
- name: Create Redirects file
run: ./.github/actions/prepare-deploy/create-redirects.sh
- name: Publish
id: deploy
uses: netlify/actions/cli@master
with:
args: deploy --dir=deploy --filter=ftu-ui
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
- name: Create Deploy Comment
uses: ./.github/actions/deploy-comment
with:
deploy-url: ${{steps.deploy.outputs.NETLIFY_URL}}