Build and Upload ApexCharts for Vaadin #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Upload ApexCharts for Vaadin | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-and-upload: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Set version from tag | |
run: | | |
TAG_NAME=${GITHUB_REF#refs/tags/} | |
mvn versions:set -B -DnewVersion=${TAG_NAME#v} | |
mvn clean install -B -Pdirectory | |
- name: Upload ApexChartsJS | |
run: | | |
TAG_NAME=${GITHUB_REF#refs/tags/} | |
curl -X POST "https://vaadin.com/vaadincom/directory-service/upload/apexchartsjs?authKey=${{ secrets.VAADIN_AUTH_KEY }}" \ | |
-H "accept: */*" \ | |
-H "Content-Type: multipart/form-data" \ | |
-F "file=@target/apexcharts-${TAG_NAME#v}.zip;type=application/zip" |