Skip to content

Commit

Permalink
feat no create release
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrice Bibonne authored Apr 4, 2024
1 parent c8ce2eb commit 6f75c15
Showing 1 changed file with 1 addition and 34 deletions.
35 changes: 1 addition & 34 deletions .github/workflows/create-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,40 +35,7 @@ jobs:
exit 1
fi
create-release:
needs: check-version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0

- name: Get previous tag
id: previousTag
run: echo "previousTag=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+\-SNAPSHOT$' | tail -1)" >> $GITHUB_OUTPUT

- name: Create release note
id: changelog
uses: requarks/changelog-action@v1
with:
fromTag: ${{ github.sha }}
toTag: ${{ steps.previousTag.outputs.previousTag}}
token: ${{ secrets.GITHUB_TOKEN }}
writeToFile: false

- uses: softprops/action-gh-release@v2
with:
tag_name: ${{ needs.check-version.outputs.release-version }}
target_commitish: ${{ github.head_ref || github.ref }}
name: ${{ needs.check-version.outputs.release-version }}
body: ${{steps.changelog.outputs.changes}}
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-release:
needs: create-release
runs-on: ubuntu-latest
steps:
- name: Extract branch name
Expand Down Expand Up @@ -116,4 +83,4 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
tags: "latest, ${{ needs.check-version.outputs.release-version }}"
workdir: bauhaus-back-office
workdir: bauhaus-back-office

0 comments on commit 6f75c15

Please sign in to comment.