Skip to content

Commit 4f441c0

Browse files
committed
fix env variables
1 parent c11f2dc commit 4f441c0

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/hugo.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,7 @@ jobs:
111111
deploy-preview:
112112
runs-on: ubuntu-22.04
113113
needs: build
114-
# Set environment variables
115-
env:
116-
domain: openrailassociation.org
117-
preview_subdomain: web-preview
118-
preview_segment: pr-${{ github.event.number }}
119-
# Only deploy if on main branch
114+
# Only deploy if pull request
120115
if: ${{ github.event.pull_request }}
121116
steps:
122117
- name: Download artifact
@@ -128,7 +123,7 @@ jobs:
128123
- name: Copy website to host
129124
uses: appleboy/scp-action@v0.1.7
130125
with:
131-
host: ${{ env.domain }}
126+
host: ${{ env.uberspace_host }}
132127
username: ${{ env.uberspace_user }}
133128
key: ${{ secrets.SSH_KEY }}
134129
port: 22

0 commit comments

Comments
 (0)