Skip to content

Commit

Permalink
ci: build workflow
Browse files Browse the repository at this point in the history
This patch adds  GitHub Actions workflow files to
build NuGet package.

Signed-off-by: Taku Izumi <admin@orz-style.com>
  • Loading branch information
kgh02017 committed Apr 13, 2024
1 parent f632857 commit 4625c2f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CIBuild

on:
push:
branches:
- "main"
- "master"

jobs:
release:
name: ci-build
runs-on: ubuntu-latest
steps:
# Checkout git repository
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@v4

# Set up dotnet CLI
# https://github.com/actions/setup-dotnet
- name: Setup .NET CLI
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x

# Build NuGet package for template
- name: Build NuGet package
run: dotnet pack

# Upload artifacts
# https://github.com/actions/upload-artifact
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Kgh02017.Templates.editorconfig-${{github.sha}}.zip
path: "./bin/Release/*.nupkg"

0 comments on commit 4625c2f

Please sign in to comment.