Skip to content
name: 'Publish to the Vaadin Directory'
env:
ADDON: nps
on:
release:
types: [published]
jobs:
validation-build:
uses: samie/nps/.github/workflows/maven.yml@v24

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

View workflow run for this annotation

GitHub Actions / .github/workflows/directory-publish.yml

Invalid workflow file

error parsing called workflow ".github/workflows/directory-publish.yml" -> "samie/nps/.github/workflows/maven.yml@v24" : failed to fetch workflow: workflow was not found.
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: Build with Maven
run: cd addon && mvn -B package -Pdirectory --file pom.xml
- name: Rename the zip
id: post-process
run: mv addon/target/${{env.ADDON}}*.zip ${{env.ADDON}}.zip
- 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;type=application/zip"
- name: Report upload failure
if: ${{ job.status == 'failure' }}
run: echo '${{ toJSON(job) }}' ; exit 1