From a8139a0a591c4a07a5df8d7afcd27e10f7fc67c8 Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Thu, 24 Oct 2024 11:57:27 -0400 Subject: [PATCH] chore: add publish docs --- .github/workflows/publish-docs.yml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/publish-docs.yml diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml new file mode 100644 index 00000000..097bc0c4 --- /dev/null +++ b/.github/workflows/publish-docs.yml @@ -0,0 +1,36 @@ +name: Hex Publish Docs + +on: + workflow_dispatch: + branches: + - master + +jobs: + publish: + name: Publish + runs-on: ubuntu-latest + steps: + - name: Only run on master + if: github.ref == 'refs/heads/master' + run: exit 0 + - uses: actions/checkout@v4 + # - name: Set up Elixir + # uses: erlef/setup-beam@v1 + # with: + # elixir-version: '1.17' + # otp-version: '27.1' + # - name: Restore dependencies cache + # uses: actions/cache@v4 + # with: + # path: deps + # key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} + # restore-keys: ${{ runner.os }}-mix- + # - name: Install dependencies + # run: | + # mix local.rebar --force + # mix local.hex --force + # mix deps.get + # - name: Run Hex Publish Docs + # run: mix hex.publish docs --yes + # env: + # HEX_API_KEY: ${{ secrets.HEX_API_KEY }}