-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add hex publish docs github action
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |