mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Update deploy-via-ssh.yml
This commit is contained in:
parent
cbc70da223
commit
d274fd9889
7
.github/workflows/deploy-via-ssh.yml
vendored
7
.github/workflows/deploy-via-ssh.yml
vendored
@ -156,7 +156,11 @@ jobs:
|
||||
shell: powershell
|
||||
run: |
|
||||
.\Utilities\Publish.ps1 -CertificatePath "$env:GITHUB_WORKSPACE\GitHubActionsWorkflow.pfx" -CertificatePassword $env:PfxKey -Hostname $env:SiteUrl -CurrentVersion $env:CurrentVersion -RID linux-x64 -OutDir "$env:GITHUB_WORKSPACE\publish"
|
||||
Compress-Archive -Path $env:GITHUB_WORKSPACE\publish -DestinationPath $env:GITHUB_WORKSPACE\publish.zip -Force
|
||||
|
||||
- name: Create zip
|
||||
shell: powershell
|
||||
run: |
|
||||
Compress-Archive -Path "$env:GITHUB_WORKSPACE\publish\*" -DestinationPath "$env:GITHUB_WORKSPACE\publish.zip" -Force
|
||||
|
||||
# Upload build artifact to be deployed from Ubuntu runner
|
||||
- name: Upload build artifact
|
||||
@ -198,5 +202,6 @@ jobs:
|
||||
- name: Publish
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir ./publish
|
||||
unzip -o ./publish.zip -d ./publish
|
||||
rsync -r -v -W "./publish" $SshUsername@$SshHostname:/var/www/remotely/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user