Skip to content

Upgrade to Scala 2.13 (#21) #18

Upgrade to Scala 2.13 (#21)

Upgrade to Scala 2.13 (#21) #18

Workflow file for this run

name: 'Release'
on:
push:
branches:
- master
jobs:
release:
name: 'Publish Release'
runs-on: ubuntu-latest
steps:
- name: 'Check out code'
uses: actions/checkout@v4
with:
token: ${{ secrets.JENKINS_GITHUB_PAT }}
- name: Configure GitHub user
run: |
git config user.name devops
git config user.email [email protected]
- name: Set up Java for publishing to GitHub Maven Packages
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
overwrite-settings: true
server-id: runtime.verification
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: 'Push Maven Packages'
env:
MAVEN_USERNAME: [email protected]
MAVEN_PASSWORD: ${{ secrets.CLOUDREPO_PASSWORD }}
run: mvn deploy --batch-mode -U
- name: 'Update Version'
run: |
version=v"$(cat package/version)"
git tag --delete "${version}" || true
git push --delete origin "${version}" || true
git tag "${version}" HEAD
git push origin "${version}:${version}"
- name: 'Update dependents'
env:
GITHUB_TOKEN: ${{ secrets.JENKINS_GITHUB_PAT }}
run: |
version="$(cat package/version)"
curl --fail \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/runtimeverification/devops/dispatches \
-d '{"event_type":"on-demand-test","client_payload":{"repo":"runtimeverification/scala-kore","version":"'${version}'"}}'