diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 5308108..c896ceb 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -35,10 +35,21 @@ jobs: - name: Build run: hugo -D --baseURL "https://leicesterhackspace.org.uk/" + - name: Upload built website as an Artifact + uses: actions/upload-artifact@v4 + with: + name: website + path: public/**/* + deploy: # Handle the connection to the production server runs-on: ubuntu-latest needs: build steps: + - name: Download built `website` Artifact + uses: actions/download-artifact@v4 + with: + name: website + path: website - name: SSH and prepare staging folder uses: appleboy/ssh-action@v1.0.3 with: @@ -54,7 +65,7 @@ jobs: host: ${{ secrets.PLESK_SSH_HOST }} username: ${{ secrets.PLESK_SSH_USER }} key: ${{ secrets.PLESK_SSH_KEY }} - source: public/**/* + source: website/**/* target: staging - name: SSH and make new version live uses: appleboy/ssh-action@v1.0.3