-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Segilmez06/dev
Release 1.0.1
- Loading branch information
Showing
21 changed files
with
1,196 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,39 @@ | ||
name: Debug | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
push: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
debug-build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '7.0.x' | ||
|
||
- name: Build | ||
run: dotnet build src/TYM.csproj | ||
|
||
- name: Publish | ||
run: dotnet publish src/TYM.csproj /p:PublishProfile=src/Properties/PublishProfiles/${{ matrix.os }}.pubxml | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ matrix.os }} | ||
path: src/pub/ | ||
debug-build: | ||
name: Debug build | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
target: win | ||
|
||
- os: ubuntu-latest | ||
target: linux | ||
|
||
- os: macos-latest | ||
target: osx | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '7.0.x' | ||
|
||
- name: Build | ||
run: dotnet build src/TYM.csproj | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: debug-${{ matrix.target }} | ||
path: src/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,83 @@ | ||
name: Build and draft release | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
|
||
draft-release: | ||
name: Draft new release | ||
runs-on: ubuntu-latest | ||
draft_release: | ||
name: Draft new release | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
release_tag: ${{ steps.project_version.outputs.TAG }} | ||
|
||
steps: | ||
|
||
outputs: | ||
upload_url: ${{ steps.draft_release.outputs.upload_url }} | ||
|
||
steps: | ||
- name: Fetch source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install XML tools | ||
run: sudo apt install xmlstarlet | ||
|
||
- name: Fetch version string | ||
run: echo "TAG=$(xmlstarlet select --template --value-of /Project/PropertyGroup/AssemblyVersion ./src/TYM.csproj)" >> $GITHUB_OUTPUT | ||
id: version | ||
|
||
- name: Draft release | ||
uses: actions/create-release@v1 | ||
id: draft_release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.G_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.version.outputs.TAG }} | ||
release_name: TYM v${{ steps.version.outputs.TAG }} | ||
draft: true | ||
prerelease: false | ||
|
||
|
||
release-assets: | ||
name: Build and upload release assets | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
|
||
steps: | ||
- name: Fetch source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '7.0.x' | ||
|
||
- name: Fetch version string (win) | ||
run: echo "TAG=$(./src/pub/TYM.exe --version | cut -c5- )" >> $GITHUB_OUTPUT | ||
id: version | ||
shell: bash | ||
if: matrix.os == 'windows-latest' | ||
|
||
- name: Fetch version string (*nix) | ||
run: echo "TAG=$(./src/pub/TYM --version | cut -c5- )" >> $GITHUB_OUTPUT | ||
id: version | ||
shell: bash | ||
if: | ||
matrix.os == 'macos-latest' | ||
matrix.os == 'ubuntu-latest' | ||
|
||
- name: Build | ||
run: dotnet build src/TYM.csproj | ||
|
||
- name: Publish | ||
run: dotnet publish src/TYM.csproj /p:PublishProfile=src/Properties/PublishProfiles/${{ matrix.os }}.pubxml | ||
|
||
- name: Upload release assets (win) | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.G_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create_release.outputs.upload_url }} | ||
asset_name: TYM-${{ steps.version.outputs.TAG }}-${{ matrix.os }} | ||
asset_path: ./src/pub/TYM.exe | ||
asset_content_type: application/octet-stream | ||
if: matrix.os == 'windows-latest' | ||
|
||
- name: Upload release assets (*nix) | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.G_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create_release.outputs.upload_url }} | ||
asset_name: TYM-${{ steps.version.outputs.TAG }}-${{ matrix.os }} | ||
asset_path: ./src/pub/TYM | ||
asset_content_type: application/octet-stream | ||
if: matrix.os == 'windows-latest' | ||
- name: Fetch source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install XML tools | ||
run: sudo apt install xmlstarlet | ||
|
||
- name: Fetch version string | ||
run: echo "TAG=$(xmlstarlet select --template --value-of /Project/PropertyGroup/AssemblyVersion ./src/TYM.csproj)" >> $GITHUB_OUTPUT | ||
id: project_version | ||
|
||
- name: Draft release | ||
uses: softprops/action-gh-release@v1 | ||
id: draft | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.G_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.project_version.outputs.TAG }} | ||
name: TYM v${{ steps.project_version.outputs.TAG }} | ||
draft: true | ||
prerelease: false | ||
body_path: CHANGELOG.md | ||
|
||
|
||
build_artifacts: | ||
name: Build release assets | ||
runs-on: ${{ matrix.os }} | ||
needs: draft_release | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
target: win | ||
bin-extension: ".exe" | ||
|
||
- os: ubuntu-latest | ||
target: linux | ||
bin-extension: "" | ||
|
||
- os: macos-latest | ||
target: osx | ||
bin-extension: "" | ||
|
||
steps: | ||
|
||
- name: Fetch source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '7.0.x' | ||
|
||
- name: Build | ||
run: dotnet build src/TYM.csproj | ||
|
||
- name: Publish | ||
run: dotnet publish src/TYM.csproj -a x64 --os ${{ matrix.target }} -c Release -p:PublishProfile=Properties/PublishProfiles/PublishConfig.pubxml | ||
|
||
- name: Rename output files | ||
run: mv src/pub/TYM${{ matrix.bin-extension }} TYM-${{ needs.draft_release.outputs.release_tag }}-${{ matrix.target }}-bin${{ matrix.bin-extension }} | ||
|
||
- name: Upload artifact | ||
run: gh release upload ${{ needs.draft_release.outputs.release_tag }} TYM-${{ needs.draft_release.outputs.release_tag }}-${{ matrix.target }}-bin${{ matrix.bin-extension }} | ||
env: | ||
GH_TOKEN: ${{ secrets.G_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Changelog | ||
|
||
## General | ||
|
||
- [x] Optimize code and fragment info methods | ||
- [x] Fix workflows (publishing) | ||
- [x] Move settings to embedded resource | ||
- [x] Optimize web requests | ||
- [x] Create console logging utility | ||
|
||
## CLI Args | ||
|
||
- [x] Clear web download cache |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<configSections> | ||
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > | ||
<section name="TYM.Config" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> | ||
</sectionGroup> | ||
</configSections> | ||
<applicationSettings> | ||
<TYM.Config> | ||
<setting name="SupportedImageMimeTypes" serializeAs="String"> | ||
<value>jpeg;bmp;gif;png;tiff;webp</value> | ||
</setting> | ||
</TYM.Config> | ||
</applicationSettings> | ||
</configuration> |
Oops, something went wrong.