Skip to content
name: 'Publish to the Vaadin Directory'
env:
ADDON: nps
VERSION: ${{ github.ref_name }}
ADDON_ZIP: "addon/target/${{env.ADDON}}-${{env.VERSION}}.zip"

Check failure on line 6 in .github/workflows/directory-publish.yml

View workflow run for this annotation

GitHub Actions / Publish to the Vaadin Directory

Invalid workflow file

The workflow is not valid. .github/workflows/directory-publish.yml (Line: 6, Col: 14): Unrecognized named-value: 'env'. Located at position 1 within expression: env.ADDON
on:
release:
types: [published]
jobs:
validation-build:
uses: samie/nps/.github/workflows/validation-build.yml@v24
publish:
needs: [validation-build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Set Version
id: set-version
run:
( cd addon && mvn versions:set -DnewVersion=${{env.VERSION}} )
- name: Build with Maven
run:
( 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"
- name: Report upload failure
if: ${{ job.status == 'failure' }}
run: echo '${{ toJSON(job) }}' ; exit 1