From c6236651015bd59b34f6ee2694f10a8371044eeb Mon Sep 17 00:00:00 2001 From: Oliver Switzer Date: Tue, 26 Nov 2024 15:50:10 -0500 Subject: [PATCH] Revert "chore: Update CI workflow with versioning and publishing steps that" This reverts commit b160fe65180945ec5862acb0854c907c06b3435d. --- .github/workflows/publish.yml | 30 ------------------------------ mix.exs | 10 +--------- 2 files changed, 1 insertion(+), 39 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5d7ca37..b866810 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,36 +30,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Calculate semantic version - id: versioning - uses: bitshifted/git-auto-semver@v1.1.0 - with: - main_branch: main - create_tag: false - tag_prefix: 'v' - - - name: Update version in mix.exs - env: - RELEASE_VERSION: ${{ steps.versioning.outputs.version-string }} - run: | - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "github-actions[bot]" - sed -i "s/version: \".*\"/version: \"${RELEASE_VERSION#v}\"/" mix.exs - git add mix.exs - git commit -m "chore: Bump version to ${RELEASE_VERSION}" - git push - - - name: Create GitHub Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - VERSION=${{ steps.versioning.outputs.version-string }} - git tag $VERSION - git push origin $VERSION - gh release create $VERSION \ - --title "Release $VERSION" \ - --generate-notes - - name: Set up Elixir uses: erlef/setup-beam@v1 with: diff --git a/mix.exs b/mix.exs index 7bd7bb0..6d6fd07 100644 --- a/mix.exs +++ b/mix.exs @@ -6,7 +6,7 @@ defmodule ShortcutApiEx.MixProject do def project do [ app: :shortcut_api_ex, - version: version(), + version: "0.1.0", elixir: "~> 1.16", start_permanent: Mix.env() == :prod, deps: deps(), @@ -56,14 +56,6 @@ defmodule ShortcutApiEx.MixProject do ] end - # Get version from git tags or default to 0.1.0 - defp version do - case System.get_env("RELEASE_VERSION") do - nil -> "0.1.0" - v -> String.replace_prefix(v, "v", "") - end - end - defp package do [ name: "shortcut_api_ex",