Skip to content

update packages only in dev branch #135

update packages only in dev branch

update packages only in dev branch #135

Workflow file for this run

name: .NET Build
on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main", "dev" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout for the current repo (plugin) into subfolder ./SurfTimer.Plugin
- name: Checkout Plugin repo into subfolder
uses: actions/checkout@v5
with:
path: SurfTimer.Plugin
# Checkout for SurfTimer.Shared as a "sibling" folder (NOT a submodule)
- name: Checkout Shared repo (sibling folder)
uses: actions/checkout@v5
with:
repository: tslashd/SurfTimer.Shared
path: SurfTimer.Shared
# If private, add PAT:
# token: ${{ secrets.SHARED_REPO_PAT }}
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x
- name: Restore
run: dotnet restore SurfTimer.Plugin/src/SurfTimer.Plugin.csproj
- name: Build
run: dotnet build SurfTimer.Plugin/src/SurfTimer.Plugin.csproj -c Release --no-restore
- name: Publish
run: dotnet publish SurfTimer.Plugin/src/SurfTimer.Plugin.csproj -c Release -o out --no-restore
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: SurfTimer.Plugin
path: out