Skip to content

Commit

Permalink
Create Releases.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Schrodinger71 committed Aug 5, 2024
1 parent 5d84f93 commit a7ab96d
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/Releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Publish Release

on:
push:
tags:
- 'v*'

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x

- name: Build and publish
run: |
dotnet publish -c Release -o release/
cd release
zip -r ${{ github.ref_name }}.zip *
cd ..
- name: Create Release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
body: |
This release contains the following changes:
- [List of changes]
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: release/${{ github.ref_name }}.zip
asset_name: ${{ github.ref_name }}.zip
asset_content_type: application/zip

0 comments on commit a7ab96d

Please sign in to comment.