Skip to content

Commit

Permalink
prepare release
Browse files Browse the repository at this point in the history
release-as: 0.1.0
  • Loading branch information
nmbrone committed Oct 12, 2023
1 parent 4936416 commit d6353d2
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 1 deletion.
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release

on:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Run Release Please Action
uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
release-type: elixir
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
extra-files: |
README.md
- name: Checkout
uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}

- name: Tag major and minor versions
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git remote add gh-token "https://${{ secrets.github-token }}@github.com/google-github-actions/release-please-action.git"
git tag -d v${{ steps.release.outputs.major }} || true
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git push origin :v${{ steps.release.outputs.major }} || true
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
git push origin v${{ steps.release.outputs.major }}
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
25 changes: 24 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
defmodule Minch.MixProject do
use Mix.Project

@source_url "https://github.com/nmbrone/minch"

def project do
[
app: :minch,
version: "0.1.0",
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps()
deps: deps(),
description: "A WebSocket client",
source_url: @source_url,
homepage_url: @source_url,
package: package(),
name: "Minch",
docs: docs()
]
end

Expand All @@ -26,4 +34,19 @@ defmodule Minch.MixProject do
{:mint_web_socket, "~> 1.0"}
]
end

defp package do
[
maintainers: ["Serhii Snozyk"],
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end

defp docs do
[
main: "Minch",
extras: ["CHANGELOG.md"]
]
end
end

0 comments on commit d6353d2

Please sign in to comment.