feat: add windows installer and tray app (#294)

This commit is contained in:
Gareth
2024-05-24 17:23:54 -07:00
committed by GitHub
parent 24d1b6a50f
commit ceaf14ed99
12 changed files with 613 additions and 43 deletions
+16
View File
@@ -9,6 +9,11 @@ on:
paths-ignore:
- "docs/**"
- "*.md"
pull_request:
branches: ["main"]
paths-ignore:
- "docs/**"
- "*.md"
workflow_dispatch:
jobs:
@@ -44,3 +49,14 @@ jobs:
path: |
dist/*.tar.gz
dist/*.zip
- name: Generate Installers
run: |
mkdir -p dist-installers
./scripts/generate-installers.sh ./dist-installers
- name: Upload Installers
uses: actions/upload-artifact@v3
with:
name: backrest-snapshot-installers
path: dist-installers/*.exe
+43
View File
@@ -52,3 +52,46 @@ jobs:
with:
name: release-artifacts
path: dist/*
tagged-release-installers:
name: "Tagged Release Installers"
runs-on: "ubuntu-latest"
needs: tagged-release
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get Release Artifact URL # used to append installer executables to the release after GoReleaser runs
id: geturl
run: |
upload_url=$(curl -sL https://api.github.com/repos/${{github.repository}}/releases/latest?access_token=${{ secrets.GITHUB_TOKEN }} | jq -r '.upload_url')
echo ::set-output name=upload_url::$upload_url
- name: Generate Installers
run: |
mkdir -p dist-installers
./scripts/generate-installers.sh ./dist-installers
- name: Upload Release Asset x86_64
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.geturl.outputs.upload_url }}
asset_path: ./dist-installers/Backrest-setup-x86_64.exe
asset_name: Backrest-setup-x86_64.exe
asset_content_type: application/octet-stream
- name: Upload Release Asset arm64
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.geturl.outputs.upload_url }}
asset_path: ./dist-installers/Backrest-setup-arm64.exe
asset_name: Backrest-setup-arm64.exe
asset_content_type: application/octet-stream