CAB-6227 use gws-client from github packages #65
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: CI Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
ARTIFACTORY_RELEASE_REPO: eaiw-release-local | |
ARTIFACTORY_RESOLVE_REPO: eaiw-local | |
ARTIFACTORY_SNAPSHOT_REPO: eaiw-snapshot-local | |
ARTIFACTORY_CONTEXT: ${{ secrets.ARTIFACTORY_CONTEXT }} | |
ARTIFACTORY_PUBLISH_USER: ${{ secrets.ARTIFACTORY_PUBLISH_USER }} | |
ARTIFACTORY_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PUBLISH_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Cache Gradle packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Build and test artifacts | |
run: ./gradlew build | |
env: | |
USER: 'uw-it-edm-bot' | |
TOKEN: ${{ secrets.EDM_GITHUB_ACCESS_PAT }} | |
- name: Publish package to github packages | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Slack Notification | |
if: ${{ failure() }} | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
SLACK_TITLE: edm-zuul-proxy Build Alert | |
SLACK_COLOR: '#ff0000' |