-
Notifications
You must be signed in to change notification settings - Fork 34
43 lines (33 loc) · 951 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Upload release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
container:
image: erlang:27
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Take ownership of the checkout directory (Git CVE-2022-24765)
run: chown --recursive --reference=/ .
- name: Allow for file ownership conflicts with Docker and GitHub Actions
run: git config --global --add safe.directory '*'
- name: Compile
run: rebar3 compile
- name: Run EUnit Tests
run: rebar3 eunit
- name: Generate docs
run: rebar3 ex_doc
- uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to hex.pm
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
run: rebar3 hex publish -r hexpm --yes