mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-09-21 23:45:36 +00:00
feat: add windows installer and tray app (#294)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user