Skip to content

Commit

Permalink
Merge pull request #19 from jcgueriaud1/testdirectory
Browse files Browse the repository at this point in the history
Automatically import the release to the directory
  • Loading branch information
jcgueriaud1 authored Apr 14, 2022
2 parents be24552 + 39fc354 commit 3170d4a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/directory.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: 'Publish to the Vaadin Directory'
name: 'Publish to the Vaadin Directory '

env:
ADDON: sortable-layout
on:
push:
branches: [ master ]
release:
types: [released]

jobs:
build:
Expand Down Expand Up @@ -31,7 +33,9 @@ jobs:
java-version: 1.8
- name: Build with Maven
run: mvn -B install -Pdirectory --file pom.xml
- name: Rename the war and remove the version
run: mv ${{env.ADDON}}/target/${{env.ADDON}}*.zip ${{env.ADDON}}.zip
- name: curl to the Vaadin Directory
uses: wei/curl@v1
with:
args: -X POST "https://vaadin.com/vaadincom/directory-service/upload/sortable-layout" -F "authKey=${{ secrets.DIRECTORY_AUTH_KEY }}" -H "accept:\ */*" -H "Content-Type:\ multipart/form-data" -F "file=@sortable-layout/target/sortable-layout-1.1.8.zip;type=application/zip"
args: -X POST "https://vaadin.com/vaadincom/directory-service/upload/${{env.ADDON}}" -F "authKey=${{ secrets.DIRECTORY_AUTH_KEY }}" -F "publish=false" -F "releaseNotes=${{ github.event.release.body }}" -H "accept:\ */*" -H "Content-Type:\ multipart/form-data" -F "file=@${{env.ADDON}}.zip;type=application/zip"
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.vaadin.jchristophe</groupId>
<artifactId>sortable-layout-root</artifactId>
<version>1.1.8</version>
<version>1.1.9</version>
<packaging>pom</packaging>
<modules>
<module>sortable-layout</module>
Expand Down
4 changes: 2 additions & 2 deletions sortable-layout-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.vaadin.jchristophe</groupId>
<artifactId>sortable-layout-demo</artifactId>
<version>1.1.8</version>
<version>1.1.9</version>

<name>Sortable Demo</name>
<packaging>war</packaging>
Expand Down Expand Up @@ -135,7 +135,7 @@
<dependency>
<groupId>org.vaadin.jchristophe</groupId>
<artifactId>sortable-layout</artifactId>
<version>1.1.8</version>
<version>1.1.9</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.vaadin/flow-component-demo-helpers -->
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion sortable-layout/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.vaadin.jchristophe</groupId>
<artifactId>sortable-layout</artifactId>
<version>1.1.8</version>
<version>1.1.9</version>
<packaging>jar</packaging>

<name>sortable-layout</name>
Expand Down

0 comments on commit 3170d4a

Please sign in to comment.