forked from basho/rebar_raw_resource
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rebar3_hex, Github Action definition for hex publish on tag
* Add rebar3_hex to project_plugins * Add Github Action to publish to hex.pm on tag push
- Loading branch information
1 parent
a5971ac
commit bbf2d03
Showing
2 changed files
with
25 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,23 @@ | ||
--- | ||
name: Publish to Hex.pm | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
container: erlang:27 | ||
|
||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v4 | ||
|
||
- name: 'Fix up git directory ownership (see https://github.com/actions/checkout/issues/1049)' | ||
run: git config --global --add safe.directory '*' | ||
|
||
- name: Publish to Hex.pm | ||
env: | ||
HEX_API_KEY: ${{ secrets.HEX_API_KEY }} | ||
run: rebar3 hex publish package -r hexpm --yes |
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 |
---|---|---|
|
@@ -54,3 +54,5 @@ | |
]} | ||
]} | ||
]}. | ||
|
||
{project_plugins, [rebar3_hex]}. |