From 1e04b43b63fea5ad7899bbc1b894e0d2c7b56873 Mon Sep 17 00:00:00 2001 From: haetae Date: Tue, 2 Sep 2025 17:09:13 -0400 Subject: [PATCH] DEPLOY --- .github/workflows/deploy.yml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..ae17a10 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,41 @@ +on: + push: + branches: + - main + # maybe TBA: also on pull requests + +name: Deploy site to FujoCoded server + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout repo + uses: actions/checkout@v4 + + - name: build site + uses: withastro/action@v4 + + - name: upload site + uses: actions/upload-artifact@v4 + with: + path: dist/ + + deploy-site: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/download-artifact@v4 + with: + name: artifact + - run: ls -la + + - name: deploy site + uses: easingthemes/ssh-deploy@main + with: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + ARGS: "-avz" + SOURCE: "./" + REMOTE_HOST: ${{ vars.REMOTE_HOST }} + REMOTE_USER: ${{ vars.REMOTE_USER }} + TARGET: ${{ vars.REMOTE_DEST }} \ No newline at end of file