Skip to content

fix: restore libraryDependencies typo introduced by build test #51

fix: restore libraryDependencies typo introduced by build test

fix: restore libraryDependencies typo introduced by build test #51

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
build:
name: "Stable Release"
runs-on: ubuntu-latest
environment: production
services:
mongodb:
image: mongo:3.2
ports:
- 27017:27017
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Log in to Docker Hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- uses: oleksiyrudenko/gha-git-credentials@v2.1
with:
token: '${{ secrets.GITHUB_TOKEN }}'
- name: Release
run: ./sbt "release with-defaults"
notify-failure:
name: "Notify on Failure"
runs-on: ubuntu-latest
needs: build
if: failure()
steps:
- name: Notify Chloé
env:
REPO: ${{ github.repository }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: |
MSG="❌ Release build failed: ${REPO}"
MSG+=$'\nRun: '"${RUN_URL}"
PAYLOAD=$(jq -n --arg msg "$MSG" --arg name "GitHub CI" \
'{message: $msg, name: $name, channel: "discord"}')
curl -sf -X POST \
-H "Authorization: Bearer ${{ secrets.OPENCLAW_HOOK_TOKEN }}" \
-H "Content-Type: application/json" \
-d "$PAYLOAD" \
"${{ secrets.OPENCLAW_HOOK_URL }}"