Skip to content

Commit

Permalink
added the admin build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-zhur committed Aug 14, 2024
1 parent 3e6b994 commit 8ef5968
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/admin.yml
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

0 comments on commit 8ef5968

Please sign in to comment.