Skip to content

Commit

Permalink
rework ci for release + update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Ombrelin committed Aug 7, 2022
1 parent c2e967b commit 2b26214
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 66 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/cicd-linux.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/cicd-windows.yml

This file was deleted.

82 changes: 82 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: CI/CD

on:
push:
branches: [ develop, master ]
jobs:
build-and-test:
name: Buid and test application
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/dotnet/sdk:6.0
steps:
- uses: actions/checkout@v2
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
build-linux-deb:
name: Build, Test and compile executable on Linux
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/dotnet/sdk:6.0
needs: [build-and-test]
steps:
- uses: actions/checkout@v2
- name: Install dotnet deb
run: |
cd src/PandocGui
dotnet tool install --global dotnet-deb
export PATH="$PATH:/github/home/.dotnet/tools"
dotnet deb install
- name: Build deb package
run: |
cd src/PandocGui
export PATH="$PATH:/github/home/.dotnet/tools"
dotnet deb -c Release -f net6.0 -o dist/linux-x64
- name: Save deb package as artifact
uses: actions/upload-artifact@v2
with:
name: pandoc-gui-deb
path: src/PandocGui/dist/linux-x64/

build-windows-installer:
name: Build, Test and publish executable on windows
runs-on: windows-latest
needs: [build-and-test]
steps:
- uses: actions/checkout@v2
- name: Build Executable
run: cd src/PandocGui && dotnet publish --runtime win-x64 --configuration Release -p:PublishSingleFile=true --self-contained true --output C:\temp\pandocgui
- name: Compile Installer
run: iscc installers/windows/installer.iss /dBuildNumber=${{github.run_number}} /dMyAppURL=https://github.com/${{github.repository}}
- name: Save Installer as Artifact
uses: actions/upload-artifact@v2
with:
name: pandoc-gui-setup
path: C:\temp\pandocgui\pandoc-gui-setup.exe

create-release:
name: Create a release for with artifacts
needs: [build-and-test,build-linux-deb,build-windows-installer]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: pandoc-gui-deb
path: linux
- uses: actions/download-artifact@v3
with:
name: pandoc-gui-setup
path: windows
- name: Build
run: echo ${{ github.sha }} > Release.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
Release.txt
linux/PandocGui.1.0.0.deb
windows/pandoc-gui-setup.exe
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Pandoc GUI

![Icon](./PandocGui/Assets/avalonia-logo.ico)
![Icon](./src/PandocGui/Assets/avalonia-logo.ico)

This software aims to provide a clean and modern GUI to generate PDF documents from markdown using Pandoc, with the ability to pass several options, like :

Expand Down Expand Up @@ -55,7 +55,7 @@ sudo installer -pkg BasicTeX.pkg -target /

### Windows

- [Download Installer](https://github.com/Ombrelin/pandoc-gui/releases/download/v1.0/pandoc-gui-setup.exe)
- [Download Installer from release](https://github.com/Ombrelin/pandoc-gui/releases/latest)
- Just run the installer

No need to install the .NET 6 Runtime, it has been bundled in the executable.
Expand All @@ -64,9 +64,13 @@ No need to install the .NET 6 Runtime, it has been bundled in the executable.

WIP

### Linux
### Linux (Debian based)

WIP
- [Download the deb package from release](https://github.com/Ombrelin/pandoc-gui/releases/latest)
- `sudo dpkg -i <deb package>` to install the deb package
- `PandocGui` to launch the app

No need to install the .NET 6 Runtime, it has been bundled in the executable.

## Run Dev

Expand Down

0 comments on commit 2b26214

Please sign in to comment.