Skip to content

Commit

Permalink
Add release automation
Browse files Browse the repository at this point in the history
  • Loading branch information
rvost committed Dec 26, 2022
1 parent e6785fe commit fc1637d
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "Release"

on:
push:
tags:
- "*.*.*"

jobs:
release:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x

- name: Restore
run: dotnet restore --packages packages

- name: Build
run: dotnet build -c Release -o ".\publish" --no-restore

- name: Fetch previous release
continue-on-error: true
shell: pwsh
run: |
packages\clowd.squirrel\2.9.42\tools\Squirrel.exe github-down`
--repoUrl "https://github.com/rvost/DayzServerTools"
- name: Publish
shell: pwsh
run: |
packages\clowd.squirrel\2.9.42\tools\Squirrel.exe pack `
--framework net6 `
--packId "DayzServerTools" `
--packVersion "${{github.ref_name}}" `
--packAuthors "rvost" `
--packDir ".\publish"
- name: Create release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
draft: true
files: |
Releases/RELEASES
Releases/*.exe
Releases/*.nupkg

0 comments on commit fc1637d

Please sign in to comment.