Skip to content

Commit

Permalink
Merge pull request #235 from mochi/automate-hex-publish
Browse files Browse the repository at this point in the history
Automate hex publish
  • Loading branch information
etrepum authored Aug 23, 2021
2 parents 04eba48 + e3cdf58 commit 835b107
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
push:
tags:
- '*'

jobs:
publish:
if: "github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')"
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2

- name: Publish to Hex.pm
uses: erlangpack/github-action@v1
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
*.swp
*.beam
*.dump
rebar.lock
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Version 2.22.0 released 2021-08-23

* Renamed master branch to main
* Add unquote_path/1 for separate '+' encoding
https://github.com/mochi/mochiweb/pull/231

Version 2.21.0 released 2021-06-06

* Upgrade crypto functions to support OTP 23
Expand Down
2 changes: 1 addition & 1 deletion src/mochiweb.app.src
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%% This is generated from src/mochiweb.app.src
{application, mochiweb,
[{description, "MochiMedia Web Server"},
{vsn, "2.21.0"},
{vsn, "2.22.0"},
{modules, []},
{registered, []},
{env, []},
Expand Down
2 changes: 1 addition & 1 deletion support/templates/mochiwebapp_skel/rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
{erl_opts, [debug_info]}.
{deps, [
{mochiweb, ".*",
{git, "git://github.com/mochi/mochiweb.git", {branch, "master"}}}]}.
{git, "git://github.com/mochi/mochiweb.git", {branch, "main"}}}]}.
{cover_enabled, true}.
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.

0 comments on commit 835b107

Please sign in to comment.