Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oscar-wos committed Jan 3, 2025
1 parent fc6435c commit e46dace
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build

on: push

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build -c Release
11 changes: 7 additions & 4 deletions .github/workflows/dotnet.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Build and Release

on: push
on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: checkout all the submodules
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
Expand All @@ -32,7 +35,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
submodules: recursive

- name: Setup .NET
uses: actions/setup-dotnet@v4
Expand Down Expand Up @@ -105,4 +108,4 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./plugin/${{ github.event.repository.name }}-${{ github.sha }}.zip
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip
asset_content_type: application/zip

0 comments on commit e46dace

Please sign in to comment.