This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
Publish 2020.3.156 #9
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: Publish | |
run-name: Publish ${{ github.ref_name }} | |
on: | |
# release on tagging | |
push: | |
tags: | |
- '2020.3.**' | |
- '2021.1.**' | |
- '2021.2.**' | |
- '2021.3.**' | |
jobs: | |
newRelease: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Use tag name as version | |
run: echo "${GITHUB_REF#refs/*/}" > modelix.version | |
- name: Build and Publish Maven | |
run: ./gradlew assemble publish -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.GHP_UNIVERSAL_PUBLISH_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 MPS+Projector Docker image | |
env: | |
DOCKER_HUB_USER: ${{ secrets.DOCKER_HUB_USER }} | |
DOCKER_HUB_KEY: ${{ secrets.DOCKER_HUB_KEY }} | |
run: cd docker && ./docker-build-projector.sh |