Skip to content

Commit 5937b7d

Browse files
authored
Update azure-static-web-apps-happy-dune-071cbee03.yml
1 parent 3009557 commit 5937b7d

File tree

1 file changed

+34
-17
lines changed

1 file changed

+34
-17
lines changed

.github/workflows/azure-static-web-apps-happy-dune-071cbee03.yml

+34-17
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,43 @@ on:
1010
- main
1111

1212
jobs:
13-
build_and_deploy_job:
14-
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
15-
runs-on: ubuntu-latest
16-
name: Build and Deploy Job
13+
build_job:
14+
runs-on: windows-latest
15+
name: Build Job
1716
steps:
18-
- uses: actions/checkout@v3
17+
- name: checkout repository
18+
uses: actions/checkout@v3
1919
with:
2020
submodules: true
21+
- name: Install DocFX
22+
run: dotnet tool update -g docfx
23+
env:
24+
CI: true
25+
- name: build Documentation
26+
id: build-documentation
27+
run: |
28+
docfx build --warningsAsErrors
29+
shell: powershell
30+
- name: Zip artifact for deployment
31+
run: Compress-Archive -Path _site/* -DestinationPath .\_site.zip
32+
- name: Publish results
33+
uses: actions/upload-artifact@v3
34+
with:
35+
name: release
36+
path: _site.zip
37+
38+
deploy_job:
39+
if: (github.event_name == 'push' && github.repository == 'SkylineCommunications/dataminer-docs-connectors')
40+
runs-on: ubuntu-latest
41+
name: Deploy Job
42+
steps:
43+
- uses: actions/download-artifact@v3
44+
with:
45+
name: release
46+
path: .
47+
- name: Unzip artifact for deployment
48+
run: Expand-Archive -Path _site.zip -DestinationPath ./_site
49+
shell: pwsh
2150
- name: Build And Deploy
2251
id: builddeploy
2352
uses: Azure/static-web-apps-deploy@v1
@@ -31,15 +60,3 @@ jobs:
3160
api_location: "" # Api source code path - optional
3261
output_location: "" # Built app content directory - optional
3362
###### End of Repository/Build Configurations ######
34-
35-
close_pull_request_job:
36-
if: github.event_name == 'pull_request' && github.event.action == 'closed'
37-
runs-on: ubuntu-latest
38-
name: Close Pull Request Job
39-
steps:
40-
- name: Close Pull Request
41-
id: closepullrequest
42-
uses: Azure/static-web-apps-deploy@v1
43-
with:
44-
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_HAPPY_DUNE_071CBEE03 }}
45-
action: "close"

0 commit comments

Comments
 (0)