diff --git a/.gitea/workflows/deploy-test-demo.yaml b/.gitea/workflows/deploy-test-demo.yaml new file mode 100644 index 0000000..5b342aa --- /dev/null +++ b/.gitea/workflows/deploy-test-demo.yaml @@ -0,0 +1,36 @@ +name: Hugo + +on: + push: + branches: + - main + +jobs: + build: + runs-on: hugo-latest + steps: + - name: Grab packages + run: apt install -y 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: https://git.myco.systems/mirrors/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 }} + - name: Running Page Speed Insights + uses: https://github.com/JakePartusch/psi-action@v1.3 + id: drafting + with: + url: "https://midtowndrafting.com" + threshold: 70 + strategy: desktop \ No newline at end of file