Skip to content

Commit

Permalink
Merge pull request #1 from Ellizio/init-project
Browse files Browse the repository at this point in the history
Init net8 project
  • Loading branch information
ellizio authored Mar 15, 2024
2 parents 866c1ba + 69e85c9 commit fb6c700
Show file tree
Hide file tree
Showing 38 changed files with 1,279 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]

jobs:
Build:
runs-on: ubuntu-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: ubuntu-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 fb6c700

Please sign in to comment.