Skip to content

Commit

Permalink
feat: add hex publish docs github action
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis committed Oct 24, 2024
1 parent d65062a commit aed9114
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions templates/.github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This file is synced with beam-community/common-config. Any changes will be overwritten.

name: Publish Docs

on:
workflow_dispatch:
branches:
- master

concurrency:
group: hex-publish-docs
cancel-in-progress: true

jobs:
{{#if IS_MIX_PACKAGE}}
Hex:
runs-on: ubuntu-latest

steps:
- name: Verify Branch
if: github.ref != 'refs/heads/main'
run: exit 1

- name: Checkout
uses: actions/checkout@v4

- name: Setup Elixir
uses: stordco/actions-elixir/setup@v1
with:
github-token: $\{{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

- name: Publish Docs
run: mix hex.publish docs --yes
env:
HEX_API_KEY: $\{{ secrets.HEX_API_KEY }}

{{/if}}

0 comments on commit aed9114

Please sign in to comment.