From eeb624b058cbc71c67fa96ead37040dd64f9d5e7 Mon Sep 17 00:00:00 2001 From: core Date: Sun, 8 Oct 2023 18:38:08 -0400 Subject: [PATCH] docs deploment to next.trifid.e3t.cc --- .forgejo/workflows/docs.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .forgejo/workflows/docs.yml diff --git a/.forgejo/workflows/docs.yml b/.forgejo/workflows/docs.yml new file mode 100644 index 0000000..ae50d03 --- /dev/null +++ b/.forgejo/workflows/docs.yml @@ -0,0 +1,16 @@ +on: + push: + branches: + master +jobs: + build: + runs_on: docker + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Install dependencies + run: cd docs && yarn install + - name: Build static site + run: cd docs && yarn build + - name: Upload site + run: sshpass -p "${{ secrets.TRIFID_WEBSITE_NEXT_PASSWORD }}" rsync --mkpath -e 'ssh -p ${{ secrets.TRIFID_WEBSITE_NEXT_PORT }} -o StrictHostKeyChecking=no' docs/build ${{ secrets.TRIFID_WEBSITE_NEXT_USER }}@${{ secrets.TRIFID_WEBSITE_NEXT_IP }}:${{ secrets.TRIFID_WEBSITE_NEXT_PATH }} \ No newline at end of file