Skip to content

Commit

Permalink
Release via Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
goswinr committed Nov 10, 2024
1 parent dcf22c7 commit ba0948a
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/releaseStandalone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build and Release Stanadalone

on:
push:
tags:
- '*.*.*'

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

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

- name: Build
run: dotnet test FeshStandalone.fsproj --configuration Release

- name: Create zip file
run: |
powershell Compress-Archive -Path bin/standalone/* -DestinationPath bin/standalone/standalone.zip
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Fesh ${{ github.ref }}
draft: false
prerelease: false
body: |
Don't forget to **unblock** the zip file before extracting.
[View Changelog](https://github.com/${{ github.repository }}/blob/${{ github.ref }}/CHANGELOG.md)
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/standalone/standalone.zip
asset_name: standalone.zip
asset_content_type: application/zip
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.14.3] - 2024-11-10
### Added
- Release via Github Actions

## [0.14.2] - 2024-11-10
### Removed
- remove false warning about missing cancellation token
Expand Down Expand Up @@ -44,7 +48,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- first public release

[Unreleased]: https://github.com/goswinr/Fesher/compare/0.14.2...HEAD
[Unreleased]: https://github.com/goswinr/Fesher/compare/0.14.3...HEAD
[0.14.3]: https://github.com/goswinr/Fesher/compare/0.14.2...0.14.3
[0.14.2]: https://github.com/goswinr/Fesher/compare/0.14.0...0.14.2
[0.14.0]: https://github.com/goswinr/Fesher/compare/0.13.0...0.14.0
[0.13.0]: https://github.com/goswinr/Fesher/compare/0.12.0...0.13.0
Expand Down

0 comments on commit ba0948a

Please sign in to comment.