-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (46 loc) · 2.18 KB
/
dnnsimplearticle.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
43
44
45
46
47
48
49
50
51
52
53
54
55
# This GitHub action to build a module in release mode, and get the PolyDeploy client and upload via PolyDeploy to a website using repository secrets.
# name: Deploy dnnSimpleArticle Module
# on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
# jobs:
# deploy-module:
# runs-on: windows-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Add msbuild to PATH
# uses: microsoft/setup-msbuild@v1.0.2
# # Action to get a release downloaded, we need to get the Deploy Client release from @bdukes. Might be abetter way to do this without hard coding a specific version, but it works for now.
# - uses: robinraju/release-downloader@v1
# with:
# repository: "bdukes/polydeploy"
# fileName: "DeployClient_00.09.03.zip"
# tag: "v0.9.3-custom"
# # stick the deploy client in polydeploy folder
# out-file-path: "polydeploy"
# - name: Unzip PolyDeploy Client
# run: |
# Expand-Archive -Path 'polydeploy\DeployClient_00.09.03.zip' -DestinationPath 'polydeploy\out\'
# shell: powershell
# - name: Restore NuGet Packages
# run: nuget restore dnnsimplearticle.sln
# - name: Build and Publish Web App
# run: msbuild dnnsimplearticle.sln /p:Configuration=Release
# # get the module's version number from the DNN manifest
# - name: get-version-from-dnn-manifest
# uses: valadas/get-version-from-dnn-manifest@v1.0.1
# id: getversion
# with:
# manifestPath: dnnsimplearticle.dnn
# - name: Copy Install Package to deployclient folder
# run: |
# cp install/DNNSimpleArticle_${{ steps.getversion.outputs.versionString }}_Install.zip polydeploy/out/DNNSimpleArticle_${{ steps.getversion.outputs.versionString }}_Install.zip
# shell: cmd
# - name: Run DeployClient to upload Zip to Production
# run: |
# cd polydeploy/out
# DeployClient.exe --no-prompt --target-uri ${{ secrets.TARGET_URI }} --api-key ${{ secrets.API_KEY }} --encryption-key ${{ secrets.ENCRYPTION_KEY }}
# shell: cmd