This repository was archived by the owner on Feb 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (66 loc) · 1.9 KB
/
Deploy.yml
File metadata and controls
71 lines (66 loc) · 1.9 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Deploy
on:
release:
types: [published]
env:
artifactName: 'wwwroot'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run './build.cmd Publish'
run: ./build.cmd Publish
- uses: actions/upload-artifact@v1
with:
name: ${{ env.artifactName }}
path: artifacts/wwwroot
deploy-test:
environment: QA
needs: build
name: Deploy to QA
runs-on: ubuntu-latest
steps:
- name: Download a single artifact
uses: actions/download-artifact@v2
with:
name: ${{ env.artifactName }}
path: ${{ env.artifactName }}
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.2.2
with:
publish-dir: ${{ env.artifactName }}
production-branch: master
production-deploy: false
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
deploy-prod:
environment: Prod
needs: build
name: Deploy to Prod
runs-on: ubuntu-latest
steps:
- name: Download a single artifact
uses: actions/download-artifact@v2
with:
name: ${{ env.artifactName }}
path: ${{ env.artifactName }}
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.2.2
with:
publish-dir: ${{ env.artifactName }}
production-branch: master
production-deploy: true
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}