Merge pull request #160 from phulien/master #28
Workflow file for this run
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
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 |