-
-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Writeback current PATH after installing packages
- Loading branch information
1 parent
daf2993
commit ec9f070
Showing
1 changed file
with
64 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,81 +31,81 @@ jobs: | |
end | ||
end | ||
# - name: checkout | ||
# uses: actions/[email protected] | ||
# with: | ||
# fetch-depth: '0' | ||
# ref: ${{ inputs.GIT_TAG }} | ||
|
||
# - name: Copy Sparkle Updater Private Key (DSA) | ||
# shell: pwsh | ||
# env: | ||
# SPARKLE_UPDATER_PK: ${{ secrets.WIN_SPARKLE_UPDATER_PRIVATE_KEY }} | ||
# run: ${env:SPARKLE_UPDATER_PK} > "${env:GITHUB_WORKSPACE}\www\update\private.pem" | ||
|
||
# - name: Generate maven settings.xml | ||
# uses: s4u/[email protected] | ||
# with: | ||
# path: "${{ github.workspace }}/settings.xml" | ||
# servers: | | ||
# [{ | ||
# "id": "custom-ip5-maven.cyberduck.io-release", | ||
# "username": "${{ secrets.AWS_CUSTOM_IP5_ACCESS_KEY_DEPLOYMENT }}", | ||
# "password": "${{ secrets.AWS_CUSTOM_IP5_SECRET_KEY_DEPLOYMENT }}" | ||
# }, | ||
# { | ||
# "id": "custom-ip5-maven.cyberduck.io-snapshot", | ||
# "username": "${{ secrets.AWS_CUSTOM_IP5_ACCESS_KEY_DEPLOYMENT }}", | ||
# "password": "${{ secrets.AWS_CUSTOM_IP5_SECRET_KEY_DEPLOYMENT }}" | ||
# }, | ||
# { | ||
# "id": "maven.iterate.ch-release", | ||
# "username": "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}", | ||
# "password": "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}" | ||
# }, | ||
# { | ||
# "id": "maven.iterate.ch-snapshot", | ||
# "username": "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}", | ||
# "password": "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}" | ||
# }, | ||
# { | ||
# "id": "maven.cyberduck.io-release", | ||
# "username": "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}", | ||
# "password": "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}" | ||
# }, | ||
# { | ||
# "id": "maven.cyberduck.io-snapshot", | ||
# "username": "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}", | ||
# "password": "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}" | ||
# }] | ||
|
||
# - name: Set up JDK 17 and skip overwriting of settings.xml | ||
# uses: actions/[email protected] | ||
# with: | ||
# distribution: 'temurin' | ||
# java-version: '17' | ||
# settings-path: "${{ github.workspace }}" | ||
# overwrite-settings: false | ||
- name: checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: '0' | ||
ref: ${{ inputs.GIT_TAG }} | ||
|
||
- name: Copy Sparkle Updater Private Key (DSA) | ||
shell: pwsh | ||
env: | ||
SPARKLE_UPDATER_PK: ${{ secrets.WIN_SPARKLE_UPDATER_PRIVATE_KEY }} | ||
run: ${env:SPARKLE_UPDATER_PK} > "${env:GITHUB_WORKSPACE}\www\update\private.pem" | ||
|
||
- name: Generate maven settings.xml | ||
uses: s4u/[email protected] | ||
with: | ||
path: "${{ github.workspace }}/settings.xml" | ||
servers: | | ||
[{ | ||
"id": "custom-ip5-maven.cyberduck.io-release", | ||
"username": "${{ secrets.AWS_CUSTOM_IP5_ACCESS_KEY_DEPLOYMENT }}", | ||
"password": "${{ secrets.AWS_CUSTOM_IP5_SECRET_KEY_DEPLOYMENT }}" | ||
}, | ||
{ | ||
"id": "custom-ip5-maven.cyberduck.io-snapshot", | ||
"username": "${{ secrets.AWS_CUSTOM_IP5_ACCESS_KEY_DEPLOYMENT }}", | ||
"password": "${{ secrets.AWS_CUSTOM_IP5_SECRET_KEY_DEPLOYMENT }}" | ||
}, | ||
{ | ||
"id": "maven.iterate.ch-release", | ||
"username": "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}", | ||
"password": "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}" | ||
}, | ||
{ | ||
"id": "maven.iterate.ch-snapshot", | ||
"username": "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}", | ||
"password": "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}" | ||
}, | ||
{ | ||
"id": "maven.cyberduck.io-release", | ||
"username": "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}", | ||
"password": "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}" | ||
}, | ||
{ | ||
"id": "maven.cyberduck.io-snapshot", | ||
"username": "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}", | ||
"password": "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}" | ||
}] | ||
- name: Set up JDK 17 and skip overwriting of settings.xml | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
settings-path: "${{ github.workspace }}" | ||
overwrite-settings: false | ||
|
||
- name: Install upload requirement Cyberduck CLI using chocolatey | ||
shell: pwsh | ||
run: Import-Module "${env:ChocolateyInstall}\helpers\chocolateyProfile.psm1" && choco install duck -y && refreshenv && "${env:Path}" | Out-File -FilePath ${env:GITHUB_PATH} -Append | ||
# run: Import-Module "${env:ChocolateyInstall}\helpers\chocolateyProfile.psm1" && choco install duck -y && refreshenv && Get-Command duck | Split-Path -Parent | Out-File -FilePath ${env:GITHUB_PATH} -Append | ||
|
||
# - name: Install build requirement Bonjour Print Services for Windows (https://community.chocolatey.org/packages/bonjour) | ||
# shell: pwsh | ||
# run: choco install bonjour -y | ||
- name: Install build requirement Bonjour Print Services for Windows (https://community.chocolatey.org/packages/bonjour) | ||
shell: pwsh | ||
run: Import-Module "${env:ChocolateyInstall}\helpers\chocolateyProfile.psm1" && choco install bonjour -y && refreshenv && "${env:Path}" | Out-File -FilePath ${env:GITHUB_PATH} -Append | ||
|
||
# - name: Install build requirement openssl using chocolatey | ||
# shell: pwsh | ||
# run: choco install openssl -y | ||
- name: Install build requirement openssl using chocolatey | ||
shell: pwsh | ||
run: Import-Module "${env:ChocolateyInstall}\helpers\chocolateyProfile.psm1" && choco install openssl -y && refreshenv && "${env:Path}" | Out-File -FilePath ${env:GITHUB_PATH} -Append | ||
|
||
- name: Add MSBuild.exe to PATH | ||
uses: microsoft/[email protected] | ||
|
||
# - name: Run maven | ||
# # Todo: Remove "-e" and "-DskipSign=true" Options for production | ||
# run: mvn clean deploy -DskipSign=true -e --settings ${env:GITHUB_WORKSPACE}/settings.xml -DskipTests -D"sparkle.feed=" | ||
- name: Run maven | ||
# Todo: Remove "-e" and "-DskipSign=true" Options for production | ||
run: mvn clean deploy -DskipSign=true -e --settings ${env:GITHUB_WORKSPACE}/settings.xml -DskipTests -D"sparkle.feed=" | ||
|
||
- name: Upload files to Rackspace | ||
shell: pwsh | ||
|