From 432d139078d11a34914293a5fa4d7837f97df4d3 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Thu, 3 Aug 2023 11:46:08 -0500 Subject: [PATCH] add github action to deploy site --- .github/workflows/publish.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..3fbe99c --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: publish-schema-docs +on: + push: + branches: + - main +jobs: + build-docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: build site + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.110.0' + - name: build + run: hugo --minify --destination ./build + + - name: publish site + uses: SamKirkland/FTP-Deploy-Action@v4.3.4 + with: + server: ${{secrets.FTP_URL}} + username: ${{secrets.FTP_USERNAME}} + password: ${{secrets.FTP_PASSWORD}} + local-dir: ./build/ + port: 21 + protocol: ftps