-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
105 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,11 @@ on: | |
- feature/* | ||
- hotfix/* | ||
- release/* | ||
- development | ||
- dev* | ||
|
||
env: | ||
# solution path doesn't need slashes unless there it is multiple folders deep | ||
# solution path needs slashes (use \). When solution file name and path are put together, it should be a valid path | ||
# If Solution is in repo root, leave SOLUTION_PATH empty | ||
# solution name does not include extension. .sln is assumed | ||
SOLUTION_PATH: PDT.LutronQuantum.EPI | ||
SOLUTION_FILE: PDT.LutronQuantum.EPI | ||
|
@@ -28,15 +29,9 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
# And any submodules | ||
- name: Checkout submodules | ||
shell: bash | ||
run: | | ||
git config --global url."https://github.com/".insteadOf "[email protected]:" | ||
auth_header="$(git config --local --get http.https://github.com/.extraheader)" | ||
git submodule sync --recursive | ||
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 | ||
# Fetch all tags | ||
submodules: true | ||
token: ${{ secrets.PLUGIN_ACTION_TOKEN }} | ||
# Fetch all tags | ||
- name: Fetch tags | ||
run: git fetch --tags | ||
# Generate the appropriate version number | ||
|
@@ -51,15 +46,22 @@ jobs: | |
run: | | ||
Write-Output ${{ env.VERSION }} | ||
./.github/scripts/UpdateAssemblyVersion.ps1 ${{ env.VERSION }} | ||
# Login to Docker | ||
- name: Login to Docker | ||
uses: azure/docker-login@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USER }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
# Build the solutions in the docker image | ||
- name: Build Solution | ||
shell: powershell | ||
run: | | ||
Invoke-Expression "docker run --rm --mount type=bind,source=""$($Env:GITHUB_WORKSPACE)"",target=""c:/project"" pepperdash/sspbuilder c:\cihelpers\vsidebuild.exe -Solution ""c:\project\$($Env:SOLUTION_PATH)\$($Env:SOLUTION_FILE).sln"" -BuildSolutionConfiguration $($ENV:BUILD_TYPE)" | ||
Invoke-Expression "docker run --rm --mount type=bind,source=""$($Env:GITHUB_WORKSPACE)"",target=""c:/project"" pepperdash/sspbuilder c:\cihelpers\vsidebuild.exe -Solution ""c:\project\$($Env:SOLUTION_PATH)$($Env:SOLUTION_FILE).sln"" -BuildSolutionConfiguration $($ENV:BUILD_TYPE)" | ||
# Zip up the output files as needed | ||
- name: Zip Build Output | ||
shell: powershell | ||
run: ./.github/scripts/ZipBuildOutput.ps1 | ||
# Upload output files | ||
- name: Upload Build Output | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,17 +24,10 @@ jobs: | |
# First we checkout the source repo | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
# And any submodules | ||
- name: Checkout submodules | ||
shell: bash | ||
run: | | ||
git config --global url."https://github.com/".insteadOf "[email protected]:" | ||
auth_header="$(git config --local --get http.https://github.com/.extraheader)" | ||
git submodule sync --recursive | ||
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 | ||
# Fetch all tags | ||
- name: Fetch tags | ||
run: git fetch --tags | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
token: ${{ secrets.PLUGIN_ACTION_TOKEN }} | ||
# Generate the appropriate version number | ||
- name: Set Version Number | ||
shell: powershell | ||
|
@@ -47,6 +40,12 @@ jobs: | |
run: | | ||
Write-Output ${{ env.VERSION }} | ||
./.github/scripts/UpdateAssemblyVersion.ps1 ${{ env.VERSION }} | ||
# Login to Docker | ||
- name: Login to Docker | ||
uses: azure/docker-login@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USER }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
# Build the solutions in the docker image | ||
- name: Build Solution | ||
shell: powershell | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
[submodule "EssentialsBuilds"] | ||
path = EssentialsBuilds | ||
url = https://github.com/PepperDash/Essentials-Builds.git | ||
branch = releases | ||
url = https://github.com/PepperDash-Engineering/essentials-builds.git |
Submodule EssentialsBuilds
updated
from 2f4769 to 39b4d0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.