File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Hex Publish Docs
2+
3+ on :
4+ workflow_dispatch :
5+ branches :
6+ - master
7+
8+ jobs :
9+ publish :
10+ name : Publish
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Verify Branch
14+ if : github.ref != 'refs/heads/master'
15+ run : exit 1
16+ - uses : actions/checkout@v4
17+ - name : Set up Elixir
18+ uses : erlef/setup-beam@v1
19+ with :
20+ elixir-version : ' 1.17'
21+ otp-version : ' 27.1'
22+ - name : Restore dependencies cache
23+ uses : actions/cache@v4
24+ with :
25+ path : deps
26+ key : ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
27+ restore-keys : ${{ runner.os }}-mix-
28+ - name : Install dependencies
29+ run : |
30+ mix local.rebar --force
31+ mix local.hex --force
32+ mix deps.get
33+ - name : Run Hex Publish Docs
34+ run : mix hex.publish docs --yes
35+ env :
36+ HEX_API_KEY : ${{ secrets.HEX_API_KEY }}
You can’t perform that action at this time.
0 commit comments