Make releases a bit more organized. Also, let's make the screen start at the center.
Some checks failed
CI/CD / build-windows (push) Has been cancelled

This commit is contained in:
Felipe Cotti 2024-12-04 01:46:43 -03:00
parent 1094396d9c
commit 00f2288dfc
2 changed files with 15 additions and 15 deletions

View file

@ -2,9 +2,8 @@ name: CI/CD
on: on:
push: push:
branches: tags:
- main - 'v[0-9]+.[0-9]+.[0-9]+'
- '*'
jobs: jobs:
build-windows: build-windows:
@ -31,13 +30,15 @@ jobs:
run: dotnet publish src/Plpext/Plpext.UI/Plpext.UI.csproj -c Release -r win-x64 -o publish run: dotnet publish src/Plpext/Plpext.UI/Plpext.UI.csproj -c Release -r win-x64 -o publish
- name: Vpk pack - name: Vpk pack
run: vpk pack --packAuthors="Felipe Cotti" --packTitle=Plpext -i build/plpext.ico -s docs/plpext.png --mainExe=Plpext.exe --packId=Plpext --packVersion=1.0.${{ github.run_number }} --packDir=publish -o build/win run: vpk pack --packAuthors="Felipe Cotti" --packTitle=Plpext -i build/plpext.ico -s docs/plpext.png --mainExe=Plpext.exe --packId=Plpext --packVersion=${{ github.ref_name }} --packDir=publish -o build/win
- name: Upload artifact - name: Upload artifact
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
tag_name: v1.0.${{ github.run_number }} draft: false
name: Release v1.0.${{ github.run_number }} prerelease: false
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
files: build/win/Plpext-win-Setup.exe files: build/win/Plpext-win-Setup.exe
env: env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

View file

@ -1,12 +1,11 @@
<Styles xmlns="https://github.com/avaloniaui" <Styles xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Design.PreviewWith />
<Design.PreviewWith>
</Design.PreviewWith>
<Style Selector="Window"> <Style Selector="Window">
<Setter Property="Background" Value="{StaticResource PrimaryBackground}" /> <Setter Property="Background" Value="{StaticResource PrimaryBackground}" />
<Setter Property="CanResize" Value="False" /> <Setter Property="CanResize" Value="False" />
<Setter Property="Width" Value="800" /> <Setter Property="Width" Value="800" />
<Setter Property="Height" Value="450" /> <Setter Property="Height" Value="450" />
<Setter Property="WindowStartupLocation" Value="CenterScreen" />
</Style> </Style>
</Styles> </Styles>