Skip to content

Merge pull request #390 from modelix/bugfix/objects-put-transactions #219

Merge pull request #390 from modelix/bugfix/objects-put-transactions

Merge pull request #390 from modelix/bugfix/objects-put-transactions #219

Workflow file for this run

name: Publish
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*'
workflow_dispatch:
jobs:
newRelease:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.3.0'
registry-url: 'https://artifacts.itemis.cloud/repository/npm-open/'
scope: '<@modelix>'
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
- name: Use tag as version
run: echo "${GITHUB_REF#refs/*/}" > version.txt
- name: Build and Publish Artifacts
# We run gradle with --info to debug the ongoing random publishing
# issues. Gradle would log upload retries on info level:
# https://github.com/gradle/gradle/blob/2e843f089f969940e505e69eb0742ed4fbf67993/platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/transport/NetworkOperationBackOffAndRetry.java#L64
# Maybe retries are the source of our duplicate publication attempts.
run: >-
./gradlew --build-cache build publish
--info
-PciBuild=true
-Partifacts.itemis.cloud.user=${{ secrets.ARTIFACTS_ITEMIS_CLOUD_USER }}
-Partifacts.itemis.cloud.pw=${{ secrets.ARTIFACTS_ITEMIS_CLOUD_PW }}
-Pgpr.user=${{ github.actor }}
-Pgpr.key=${{ secrets.GITHUB_TOKEN }}
-Pgpr.universalkey=${{ secrets.GHP_UNIVERSAL_PUBLISH_TOKEN }}
-Porg.gradle.internal.http.connectionTimeout=180000
-Porg.gradle.internal.http.socketTimeout=180000
env:
NODE_AUTH_TOKEN: ${{ secrets.ARTIFACTS_ITEMIS_CLOUD_NPM_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
platforms: linux/amd64,linux/arm64
- name: Build and Publish Docker
env:
DOCKER_HUB_USER: ${{ secrets.DOCKER_HUB_USER }}
DOCKER_HUB_KEY: ${{ secrets.DOCKER_HUB_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./docker-ci.sh