Skip to content

Improve artifact publishing process #33

Improve artifact publishing process

Improve artifact publishing process #33

Workflow file for this run

name: Maven CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn compile
- name: Extract Maven project version
run: echo "version=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)" >> $VINTED_KAFKA_CONNECT_VESPA_VERSION
id: project
- name: Test with Maven
run: mvn test --batch-mode --fail-at-end
- name: Publish Test Report
if: success() || failure()
uses: scacap/action-surefire-report@v1
- name: Package with maven
run: mvn package
- uses: actions/upload-artifact@v3
with:
name: vinted-kafka-connect-vespa-${{ $VINTED_KAFKA_CONNECT_VESPA_VERSION }}.jar

Check failure on line 36 in .github/workflows/CI.yml

View workflow run for this annotation

GitHub Actions / Maven CI

Invalid workflow file

The workflow is not valid. .github/workflows/CI.yml (Line: 36, Col: 17): Unexpected symbol: '$VINTED_KAFKA_CONNECT_VESPA_VERSION'. Located at position 1 within expression: $VINTED_KAFKA_CONNECT_VESPA_VERSION .github/workflows/CI.yml (Line: 37, Col: 17): Unexpected symbol: '$VINTED_KAFKA_CONNECT_VESPA_VERSION'. Located at position 1 within expression: $VINTED_KAFKA_CONNECT_VESPA_VERSION
path: target/components/kafka-connect-vespa-${{ $VINTED_KAFKA_CONNECT_VESPA_VERSION }}.jar
- uses: actions/upload-artifact@v3
with:
name: vinted-kafka-connect-vespa-${{ $VINTED_KAFKA_CONNECT_VESPA_VERSION }}.zip
path: target/components/packages/vinted-kafka-connect-vespa-${{ $VINTED_KAFKA_CONNECT_VESPA_VERSION }}.zip