Skip to content

Commit 4c84bd8

Browse files
authored
Update release.yml
1 parent c1fc0ab commit 4c84bd8

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,28 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v2
15+
16+
- name: Get original release version
17+
id: orig
18+
run: |
19+
echo "::set-output name=version::$(echo ${{github.event.client_payload.value}} | cut -dv -f2)"
1520
1621
- name: Create Release
1722
id: create_release
1823
uses: actions/create-release@v1
1924
env:
2025
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2126
with:
22-
tag_name: v${{ steps.version.outputs.release }}
23-
release_name: v${{ steps.version.outputs.release }}
27+
tag_name: ${{ github.ref }}
28+
release_name: ${{ github.ref }}
2429
body: |
2530
## Installation
2631
Add the following lines to your pom:
2732
```XML
2833
<dependency>
2934
<groupId>com.xdev-software</groupId>
30-
<artifactId>vaadin-date-range-picker</artifactId>
31-
<version>${{ steps.version.outputs.release }}</version>
35+
<artifactId>vaadin-maps-leaflet-flow</artifactId>
36+
<version>${{ steps.orig.outputs.version }}}</version>
3237
</dependency>
3338
```
3439
draft: false
@@ -67,7 +72,7 @@ jobs:
6772
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
6873
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
6974
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
70-
working-directory: vaadin-date-range-picker
75+
working-directory: vaadin-maps-leaflet-flow
7176

7277
build_directory: # Build a ZIP that can be uploaded to Vaadin Directory
7378
runs-on: ubuntu-latest
@@ -82,13 +87,13 @@ jobs:
8287

8388
- name: Build for Vaadin Directory
8489
run: mvn -B install -Pdirectory
85-
working-directory: vaadin-date-range-picker
90+
working-directory: vaadin-maps-leaflet-flow
8691

8792
- name: Upload asset
8893
uses: actions/upload-artifact@v2
8994
with:
9095
name: vaadin-directory-files
91-
path: vaadin-date-range-picker/target/vaadin-date-range-picker-*.zip
96+
path: vaadin-maps-leaflet-flow/target/vaadin-maps-leaflet-flow-*.zip
9297
if-no-files-found: error
9398

9499
- name: Download Release Asset Upload URL
@@ -105,14 +110,14 @@ jobs:
105110
id: version
106111
run: |
107112
echo "::set-output name=release::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
108-
working-directory: vaadin-date-range-picker
113+
working-directory: vaadin-maps-leaflet-flow
109114

110115
- name: Upload Release Asset
111116
uses: actions/upload-release-asset@v1
112117
env:
113118
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114119
with:
115120
upload_url: ${{ steps.create_release.outputs.upload_url }}
116-
asset_path: vaadin-date-range-picker/target/vaadin-date-range-picker-${{ steps.version.outputs.release }}.zip
117-
asset_name: vaadin-date-range-picker-${{ steps.version.outputs.release }}.zip
121+
asset_path: vaadin-maps-leaflet-flow/target/vaadin-maps-leaflet-flow-${{ steps.version.outputs.release }}.zip
122+
asset_name: vaadin-maps-leaflet-flow-${{ steps.version.outputs.release }}.zip
118123
asset_content_type: application/zip

0 commit comments

Comments
 (0)