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 c397bd8 commit 7de4193
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/directory-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
env:
VERSION: ${{ github.ref_name }}
ADDON_ZIP: "addon/target/${{env.ADDON}}-${{ github.ref_name }}.zip"
ADDON_ZIP: "addon/target/${{ADDON}}-${{ github.ref_name }}.zip"
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
Expand All @@ -29,17 +29,17 @@ jobs:
id: set-version
run:
echo "Creating version ${{env.VERSION}}"
( cd addon && mvn versions:set -DnewVersion=${{env.VERSION}} )
( cd addon && mvn versions:set -DnewVersion=${{VERSION}} )
- name: Build with Maven
run:
echo "Building ${{env.ADDON_ZIP}}"
echo "Building ${{ADDON_ZIP}}"
( cd addon && mvn -B package -Pdirectory --file pom.xml )
- name: Upload to Vaadin Directory
id: upload
uses: wei/curl@v1
continue-on-error: false
with:
args: -X POST "https://vaadin.com/vaadincom/directory-service/upload/${{env.ADDON}}" -F "authKey=${{ secrets.DIRECTORY_AUTH_KEY }}" -F "publish=true" -F "releaseNotes=test" -H "accept:\ */*" -H "Content-Type:\ multipart/form-data" -F "file=@${{env.ADDON_ZIP}}.zip;type=application/zip"
args: -X POST "https://vaadin.com/vaadincom/directory-service/upload/${{ADDON}}" -F "authKey=${{ secrets.DIRECTORY_AUTH_KEY }}" -F "publish=true" -F "releaseNotes=test" -H "accept:\ */*" -H "Content-Type:\ multipart/form-data" -F "file=@${{ADDON_ZIP}}.zip;type=application/zip"
- name: Report upload failure
if: ${{ job.status == 'failure' }}
run: echo '${{ toJSON(job) }}' ; exit 1

0 comments on commit 7de4193

Please sign in to comment.