Skip to content

Commit

Permalink
Update directory-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
samie committed May 25, 2023
1 parent 5b1b633 commit c397bd8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/directory-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: 'Publish to the Vaadin Directory'

env:
ADDON: nps
VERSION: ${{ github.ref_name }}
ADDON_ZIP: "addon/target/${{env.ADDON}}-${{env.VERSION}}.zip"

on:
release:
Expand All @@ -16,6 +14,9 @@ jobs:
publish:
needs: [validation-build]
runs-on: ubuntu-latest
env:
VERSION: ${{ github.ref_name }}
ADDON_ZIP: "addon/target/${{env.ADDON}}-${{ github.ref_name }}.zip"
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
Expand All @@ -27,9 +28,11 @@ jobs:
- name: Set Version
id: set-version
run:
echo "Creating version ${{env.VERSION}}"
( cd addon && mvn versions:set -DnewVersion=${{env.VERSION}} )
- name: Build with Maven
run:
echo "Building ${{env.ADDON_ZIP}}"
( cd addon && mvn -B package -Pdirectory --file pom.xml )
- name: Upload to Vaadin Directory
id: upload
Expand Down

0 comments on commit c397bd8

Please sign in to comment.