Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

[chore] Update actions/upload-artifact to v4 #6

[chore] Update actions/upload-artifact to v4

[chore] Update actions/upload-artifact to v4 #6

name: SQL Extraction
on:
push:
paths:
- 'tools/sql_extraction/**'
- '.github/workflows/sql-extraction.yml'
pull_request:
paths:
- 'tools/sql_extraction/**'
- '.github/workflows/sql-extraction.yml'
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: tools/sql_extraction
steps:
- uses: actions/checkout@v2
- 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 }}-sql-extraction-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-sql-extraction-gradle
- name: Test with Gradle
run: ./gradlew test
- name: Build with Gradle
run: ./gradlew build
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: dist
path: tools/sql_extraction/build/distributions/*