Upload builds to release #14
This file contains hidden or 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
| name: Upload builds to release | |
| on: | |
| workflow_dispatch: | |
| release: | |
| types: [released] | |
| jobs: | |
| build-appimage: | |
| name: Build and upload amd64 AppImages | |
| runs-on: ubuntu-22.04 # Oldest ubuntu possible to make the AppImage as compatible as possible | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: iffy/install-nim@v5 | |
| - name: Install x11 dev libraries | |
| run: sudo apt install libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgl-dev libfuse2 | |
| - name: Build AppImage | |
| run: | | |
| nimble install -d -y | |
| nimble c nakefile.nim | |
| nake build | |
| - name: Get Previous tag | |
| id: previoustag | |
| uses: "WyriHaximus/github-action-get-previous-tag@v1" | |
| - name: Upload binaries to release | |
| uses: svenstaro/upload-release-action@v2 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file: "*-*-*.AppImage" | |
| file_glob: true | |
| tag: ${{ steps.previoustag.outputs.tag }} | |
| overwrite: true | |
| - name: Upload binaries to release | |
| uses: svenstaro/upload-release-action@v2 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file: "*-*-*.AppImage.zsync" | |
| file_glob: true | |
| tag: ${{ steps.previoustag.outputs.tag }} | |
| overwrite: true | |
| build-win: | |
| name: Build and upload amd64 exe | |
| runs-on: windows-2022 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: iffy/install-nim@v5 | |
| - name: Build exe | |
| run: | | |
| nimble install -d -y | |
| nimble c nakefile.nim | |
| nake build | |
| - name: Get Previous tag | |
| id: previoustag | |
| uses: "WyriHaximus/github-action-get-previous-tag@v1" | |
| - name: Upload binaries to release | |
| uses: svenstaro/upload-release-action@v2 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file: "*.zip" | |
| file_glob: true | |
| tag: ${{ steps.previoustag.outputs.tag }} | |
| overwrite: true | |