Skip to content

Commit

Permalink
init project
Browse files Browse the repository at this point in the history
  • Loading branch information
ellizio committed Mar 14, 2024
1 parent 866c1ba commit 742a573
Show file tree
Hide file tree
Showing 40 changed files with 1,405 additions and 395 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Preserve line endings in gradle scripts
gradlew* -text diff
41 changes: 41 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on: [push, pull_request]

jobs:
Build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/cache@v2
with:
path: |
build/gradle-jvm
~/.nuget/packages
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-Build-${{ hashFiles('gradlew.bat', 'src/dotnet/*/*.csproj', 'src/dotnet/*.props', 'gradle-wrapper.properties') }}
- run: ./gradlew :buildPlugin --no-daemon
- uses: actions/upload-artifact@v3
if: always()
with:
name: ${{ github.event.repository.name }}.CI.${{ github.ref_name }}
path: output
Test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/cache@v2
with:
path: |
build/gradle-jvm
packages
~/.nuget/packages
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-Test-${{ hashFiles('gradlew.bat', 'src/dotnet/*/*.csproj', 'src/dotnet/*.props', 'gradle-wrapper.properties') }}
- run: ./gradlew :testDotNet --no-daemon
21 changes: 21 additions & 0 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy

on:
push:
tags:
- '*.*.*'

jobs:
Publish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: ./gradlew :publishPlugin -PBuildConfiguration="Release" -PPluginVersion="${{ github.ref_name }}" -PPublishToken="${{ env.PUBLISH_TOKEN }}"
env:
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
- uses: actions/upload-artifact@v3
if: always()
name: ${{ github.event.repository.name }}.${{ github.ref_name }}
path: output
Loading

0 comments on commit 742a573

Please sign in to comment.