Skip to content

Update dependency gradle to v8 #445

Update dependency gradle to v8

Update dependency gradle to v8 #445

name: Build Develop
on:
push:
branches-ignore:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.17
uses: actions/setup-java@v1
with:
distribution: 'adopt'
java-version: 1.17
- name: Build bot
run: ./gradlew shadowJar
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: Artifacts
path: build/libs
packages:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: Artifacts
path: build/libs
- name: Publish Docker Image to GPR
uses: machine-learning-apps/gpr-docker-publish@master
id: docker
with:
IMAGE_NAME: 'corgibot'
TAG: 'develop'
DOCKERFILE_PATH: 'Dockerfile'
BUILD_CONTEXT: './'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}