From de1ae550d6525e6c7397db0c81441a4455e4110f Mon Sep 17 00:00:00 2001 From: vshakitskiy Date: Wed, 5 Aug 2026 14:44:59 +0300 Subject: [PATCH] setup docs workflow --- .github/workflows/autobahn.yml | 2 +- .github/workflows/docs.yml | 50 ++++++++++++++++++++++++++++++++++ .github/workflows/test.yml | 2 +- 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/autobahn.yml b/.github/workflows/autobahn.yml index 35c25bc..3d172e8 100644 --- a/.github/workflows/autobahn.yml +++ b/.github/workflows/autobahn.yml @@ -14,7 +14,7 @@ jobs: - uses: erlef/setup-beam@v1 with: otp-version: "28.2" - gleam-version: "1.16.0" + gleam-version: "1.18.0" rebar3-version: "3" - name: Downloading dependencies diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..3069510 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,50 @@ +name: Build docs and publish on GitHub Pages + +on: + push: + branches: + - mistress + - v5 + workflow_dispatch: + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + deploy: + name: Deploy to GitHub Pages + runs-on: ubuntu-latest + permissions: + contents: read + deployments: write + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Set up Gleam + uses: erlef/setup-beam@v1 + with: + otp-version: "28.2" + gleam-version: "1.18.0" + rebar3-version: "3" + + - name: Build documentation + run: gleam docs build + + - name: Setup Pages + uses: actions/configure-pages@v5 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: "build/dev/docs/ewe" + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3912d64..611f46e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: - uses: erlef/setup-beam@v1 with: otp-version: "28.2" - gleam-version: "1.16.0" + gleam-version: "1.18.0" rebar3-version: "3" - name: Downloading dependencies -- 2.51.2