Skip to content

Instantly share code, notes, and snippets.

@graywolfcorp
Last active February 7, 2024 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graywolfcorp/6c4bb4ff517927531b068dc9db8d1ba3 to your computer and use it in GitHub Desktop.
Save graywolfcorp/6c4bb4ff517927531b068dc9db8d1ba3 to your computer and use it in GitHub Desktop.
yaml for repo outside project folder
steps:
- name: checkout Blazor web - primary solution - need to place one folder down so relative refs in sln file work
uses: actions/checkout@v4
with:
path: './app'
- name: check out httprequest - external project library
uses: actions/checkout@v4
with:
token: ${{ secrets.TOKEN }}
repository: graywolfcorp/GWC.HttpRequest.Library
path: './GWC.HttpRequest.Library'
ref: dev
- name: directory - runs from root folder
run: dir *
- name: Set up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.x'
include-prerelease: true
- name: Build with dotnet - specify working folder for solution
run: dotnet build --configuration Release
working-directory: ./app
- name: dotnet publish
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
working-directory: ./app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment