diff --git a/.github/workflows/push-examples.yaml b/.github/workflows/push-examples.yaml index 5ff3d36d..8db5d70b 100644 --- a/.github/workflows/push-examples.yaml +++ b/.github/workflows/push-examples.yaml @@ -22,7 +22,7 @@ jobs: env: dir: 'packages/examples/${{ matrix.dir }}/' - host: '${{ matrix.dir }}.nuejs.org' + domain: '${{ matrix.dir }}.${{ vars.DOMAIN }}' archive: 'site.tar.gz' runs-on: ubuntu-latest @@ -57,11 +57,11 @@ jobs: - name: Prepare SSH uses: kielabokkie/ssh-key-and-known-hosts-action@v1 with: - ssh-private-key: ${{ secrets.SSH_PRIVATE }} + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} ssh-host: ${{ secrets.SSH_HOST }} # copies built site archive to server, unpacks archive on server - name: Push files to web server run: | - scp "${{ env.archive }}" "${{ env.host }}@${{ secrets.SSH_HOST }}" - ssh "${{ env.host }}@${{ secrets.SSH_HOST }}" "tar -xf ${{ env.archive }}" + scp "${{ env.archive }}" "${{ env.domain }}@${{ secrets.SSH_HOST }}" + ssh "${{ env.domain }}@${{ secrets.SSH_HOST }}" "tar -xf ${{ env.archive }}" diff --git a/.github/workflows/push-site.yaml b/.github/workflows/push-site.yaml index df9947b7..04a6f7a7 100644 --- a/.github/workflows/push-site.yaml +++ b/.github/workflows/push-site.yaml @@ -17,7 +17,7 @@ jobs: env: dir: 'packages/nuejs.org/' - host: 'nuejs.org' + domain: '${{ vars.DOMAIN }}' archive: 'site.tar.gz' runs-on: ubuntu-latest @@ -34,11 +34,11 @@ jobs: - name: Prepare SSH uses: kielabokkie/ssh-key-and-known-hosts-action@v1 with: - ssh-private-key: ${{ secrets.SSH_PRIVATE }} + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} ssh-host: ${{ secrets.SSH_HOST }} # copies built site archive to server, unpacks archive on server - name: Push files to web server run: | - scp "${{ env.archive }}" "${{ env.host }}@${{ secrets.SSH_HOST }}" - ssh "${{ env.host }}@${{ secrets.SSH_HOST }}" "tar -xf ${{ env.archive }}" + scp "${{ env.archive }}" "${{ env.domain }}@${{ secrets.SSH_HOST }}" + ssh "${{ env.domain }}@${{ secrets.SSH_HOST }}" "tar -xf ${{ env.archive }}"