Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 21 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ jobs:

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

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
run: |
git clone "https://x-access-token:${{ github.token }}@github.com/${{ github.repository }}.git" .
git checkout ${{ github.event.pull_request.merge_commit_sha }}

- name: Extract version from csproj
id: version
Expand Down Expand Up @@ -61,14 +58,23 @@ jobs:
zip -j tokybay-linux-x64.zip linux-x64/*
zip -j tokybay-linux-arm64.zip linux-arm64/*

- name: Create and push version tag
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git tag "v${{ steps.version.outputs.value }}"
git push "https://x-access-token:${{ github.token }}@github.com/${{ github.repository }}.git" "v${{ steps.version.outputs.value }}"

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.version.outputs.value }}
name: v${{ steps.version.outputs.value }}
body: ${{ github.event.pull_request.body }}
make_latest: true
files: |
publish/tokybay-win-x64.zip
publish/tokybay-linux-x64.zip
env:
GH_TOKEN: ${{ github.token }}
PR_BODY: ${{ github.event.pull_request.body }}
run: |
printf '%s' "$PR_BODY" > release_notes.md
gh release create "v${{ steps.version.outputs.value }}" \
--title "v${{ steps.version.outputs.value }}" \
--notes-file release_notes.md \
--latest \
publish/tokybay-win-x64.zip \
publish/tokybay-linux-x64.zip \
publish/tokybay-linux-arm64.zip
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Search & download audiobooks from multiple sites and convert them automatically
> This project is intended for educational purposes only. Please respect copyright laws and the terms of service of the respective websites.

![Last Updated](https://img.shields.io/github/last-commit/z00mable/TokyBay?label=Last%20Updated)
![Downloads](https://img.shields.io/github/downloads/z00mable/TokyBay/total?label=Downloads)
![Repo Stars](https://img.shields.io/github/stars/z00mable/TokyBay?style=social)
![C#](https://img.shields.io/badge/C%23-C--Sharp-brightgreen?style=flat&logo=csharp)
![Platform](https://img.shields.io/badge/Platform-Cross--Platform-009688?logo=windows&logoColor=white)
Expand Down
6 changes: 3 additions & 3 deletions TokyBay/TokyBay.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.5.2</Version>
<AssemblyVersion>0.5.2</AssemblyVersion>
<FileVersion>0.5.2</FileVersion>
<Version>0.5.3</Version>
<AssemblyVersion>0.5.3</AssemblyVersion>
<FileVersion>0.5.3</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down