Skip to content

Commit

Permalink
Create BuildRelease.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GoomiiV2 authored Sep 14, 2022
1 parent a4438bd commit ebf9eb0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/BuildRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build Release

on:
push:
tags:
- '*'

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet publish -c Release -r win-x64 -p:PublishSingleFile=true --self-contained true
- name: Archive Release
uses: thedoctor0/zip-release@main
with:
path: "D:\\a\\PacketPeep\\PacketPeep\\PacketPeep\\bin\\Release\\net6.0\\win-x64\\publish\\*"
type: 'zip'
filename: 'PacketPeep_Release_${{github.ref_name}}.zip'
exclusions: '*.git* /*node_modules/* .editorconfig'
- name: Upload Release
uses: ncipollo/release-action@v1
with:
artifacts: 'PacketPeep_Release_${{github.ref_name}}.zip'
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ebf9eb0

Please sign in to comment.