-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e6b994
commit 8ef5968
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# This workflow will build a .NET project | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | ||
|
||
name: admin | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
#push: | ||
#branches: [ master ] | ||
# Allows you to run this workflow manually from the Actions tab | ||
#workflow_dispatch: | ||
push: | ||
tags: | ||
- "v*-a" | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Restore dependencies | ||
run: dotnet restore OneShelf.Admin/OneShelf.Admin.Web/OneShelf.Admin.Web.csproj | ||
- name: Publish 11 | ||
run: dotnet publish OneShelf.Admin/OneShelf.Admin.Web/OneShelf.Admin.Web.csproj --no-restore | ||
- run: Compress-Archive -Path OneShelf.Admin/OneShelf.Admin.Web/bin/Release/net8.0/publish/* -Destination OneShelf.Admin.Web.zip | ||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: true | ||
files: | | ||
LICENSE | ||
*.zip |