Skip to content

Commit

Permalink
Merge pull request #2808 from mapfish/backport/2807-to-master
Browse files Browse the repository at this point in the history
[Backport master] Fix create release
  • Loading branch information
sbrunner authored Feb 25, 2023
2 parents 280c021 + 4d2e13c commit 38dff77
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,6 @@ jobs:
timeout-minutes: 30

steps:
- uses: actions/checkout@v3
if: github.event_name == 'push' && github.ref_type == 'tag'
- name: Create release
run: |
if [[ ${{ github.ref_name }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
gh release create ${{ github.ref_name }} --generate-notes || true
fi
if: github.event_name == 'push' && github.ref_type == 'tag'
env:
GH_TOKEN: ${{ github.token }}

- name: Get Date
id: get-date
run: |
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,17 @@ jobs:

- id: version
run: echo "##[set-output name=version;]$(grep version gradle.properties|sed "s/ \+version=.\(.*\)./\1/g")"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ steps.tag.outputs.tag }}
draft: false
prerelease: false
if: startsWith(github.ref, 'refs/tags/') && env.HAS_SECRETS == 'HAS_SECRETS'
- name: Upload Release Asset
uses: actions/[email protected]
env:
Expand Down

0 comments on commit 38dff77

Please sign in to comment.