Skip to content

Commit

Permalink
Test running on test branch
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverswitzer committed Nov 26, 2024
1 parent cd11c8d commit 7be6dfe
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Publish

on:
workflow_dispatch:
push:
branches:
- improve-auto-versioning

jobs:
version:
Expand All @@ -12,6 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: improve-auto-versioning
fetch-depth: 0

- name: Calculate semantic version
Expand All @@ -30,17 +34,13 @@ 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: Get calculated version
id: version
run: echo "version=${{ needs.version.outputs.version }}" >> $GITHUB_OUTPUT

- name: Update version in mix.exs
env:
RELEASE_VERSION: ${{ steps.versioning.outputs.version-string }}
RELEASE_VERSION: ${{ steps.version.outputs.version }}
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
Expand All @@ -53,7 +53,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION=${{ steps.versioning.outputs.version-string }}
VERSION=${{ steps.version.outputs.version }}
git tag $VERSION
git push origin $VERSION
gh release create $VERSION \
Expand Down

0 comments on commit 7be6dfe

Please sign in to comment.