diff --git a/.gitea/workflows/demo-deploy.yaml b/.gitea/workflows/demo-deploy.yaml new file mode 100644 index 0000000..dc746eb --- /dev/null +++ b/.gitea/workflows/demo-deploy.yaml @@ -0,0 +1,29 @@ +name: Hugo + +on: + push: + branches: + - rework + +jobs: + build: + runs-on: hugo-latest + steps: + - name: Grab packages + run: apk add rsync openssh-client + - uses: actions/checkout@v4 + with: + submodules: 'true' + - name: Run build task + run: hugo --minify + - name: Test static page + run: bash ${{ gitea.workspace }}/bin/test_static_page.sh + - name: Deploy to Server + uses: easingthemes/ssh-deploy@main + env: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + ARGS: "-rlgoDzvc -i --delete" + SOURCE: "public/" + REMOTE_HOST: ${{ secrets.REMOTE_HOST }} + REMOTE_USER: ${{ secrets.REMOTE_USER }} + TARGET: ${{ secrets.DEMO_REMOTE_TARGET }} \ No newline at end of file