mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-30 10:38:11 +00:00
Separate release
This commit is contained in:
parent
76f4b28256
commit
1c0e4629a2
1 changed files with 34 additions and 22 deletions
56
.github/workflows/release.yaml
vendored
56
.github/workflows/release.yaml
vendored
|
@ -12,7 +12,7 @@ on:
|
||||||
required: true
|
required: true
|
||||||
default: "1"
|
default: "1"
|
||||||
jobs:
|
jobs:
|
||||||
build-and-release-android:
|
build-android:
|
||||||
name: Build Android .apk and .aab
|
name: Build Android .apk and .aab
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
|
@ -51,20 +51,14 @@ jobs:
|
||||||
run: cp $ANDROID_APK_RELEASE_PATH/AdGuardHomeManager_${{ github.event.inputs.version }}_Android.apk AdGuardHomeManager_${{ github.event.inputs.version }}_Android.apk
|
run: cp $ANDROID_APK_RELEASE_PATH/AdGuardHomeManager_${{ github.event.inputs.version }}_Android.apk AdGuardHomeManager_${{ github.event.inputs.version }}_Android.apk
|
||||||
- name: Copy aab to project root
|
- name: Copy aab to project root
|
||||||
run: cp $ANDROID_AAB_RELEASE_PATH/AdGuardHomeManager_${{ github.event.inputs.version }}_Android.aab AdGuardHomeManager_${{ github.event.inputs.version }}_Android.aab
|
run: cp $ANDROID_AAB_RELEASE_PATH/AdGuardHomeManager_${{ github.event.inputs.version }}_Android.aab AdGuardHomeManager_${{ github.event.inputs.version }}_Android.aab
|
||||||
- name: Release
|
- name: Upload artifact
|
||||||
uses: softprops/action-gh-release@v1
|
uses: actions/upload-artifact@v3
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
draft: false
|
name: android
|
||||||
prerelease: false
|
path: |
|
||||||
name: v${{ github.event.inputs.version }}
|
|
||||||
tag_name: ${{ github.event.inputs.version }}
|
|
||||||
files: |
|
|
||||||
AdGuardHomeManager_${{ github.event.inputs.version }}_Android.aab
|
AdGuardHomeManager_${{ github.event.inputs.version }}_Android.aab
|
||||||
AdGuardHomeManager_${{ github.event.inputs.version }}_Android.apk
|
AdGuardHomeManager_${{ github.event.inputs.version }}_Android.apk
|
||||||
build-and-release-macos:
|
build-macos:
|
||||||
name: Build macOS .dmg
|
name: Build macOS .dmg
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
env:
|
env:
|
||||||
|
@ -91,14 +85,32 @@ jobs:
|
||||||
run: hdiutil create -srcfolder $MACOS_APP_RELEASE_PATH/AdGuard\ Home\ Manager $MACOS_APP_RELEASE_PATH/AdGuardHomeManager_${{ github.event.inputs.version }}_macOS_Universal.dmg
|
run: hdiutil create -srcfolder $MACOS_APP_RELEASE_PATH/AdGuard\ Home\ Manager $MACOS_APP_RELEASE_PATH/AdGuardHomeManager_${{ github.event.inputs.version }}_macOS_Universal.dmg
|
||||||
- name: Copy dmg to project root
|
- name: Copy dmg to project root
|
||||||
run: cp $MACOS_APP_RELEASE_PATH/AdGuardHomeManager_${{ github.event.inputs.version }}_macOS_Universal.dmg AdGuardHomeManager_${{ github.event.inputs.version }}_macOS_Universal.dmg
|
run: cp $MACOS_APP_RELEASE_PATH/AdGuardHomeManager_${{ github.event.inputs.version }}_macOS_Universal.dmg AdGuardHomeManager_${{ github.event.inputs.version }}_macOS_Universal.dmg
|
||||||
- name: Release
|
- name: Upload artifact
|
||||||
uses: softprops/action-gh-release@v1
|
uses: actions/upload-artifact@v3
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
draft: false
|
name: macos
|
||||||
prerelease: false
|
path: AdGuardHomeManager_${{ github.event.inputs.version }}_macOS_Universal.dmg
|
||||||
name: v${{ github.event.inputs.version }}
|
release-builds:
|
||||||
tag_name: ${{ github.event.inputs.version }}
|
needs: [build-android, build-macos]
|
||||||
files: AdGuardHomeManager_${{ github.event.inputs.version }}_macOS_Universal.dmg
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
|
- name: Download Android artifacts
|
||||||
|
with:
|
||||||
|
name: android
|
||||||
|
- name: Download macOS artifacts
|
||||||
|
with:
|
||||||
|
name: macos
|
||||||
|
- name: Release to GitHub
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
|
with:
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
name: v${{ github.event.inputs.version }}
|
||||||
|
tag_name: ${{ github.event.inputs.version }}
|
||||||
|
files: |
|
||||||
|
AdGuardHomeManager_${{ github.event.inputs.version }}_Android.aab
|
||||||
|
AdGuardHomeManager_${{ github.event.inputs.version }}_Android.apk
|
||||||
|
AdGuardHomeManager_${{ github.event.inputs.version }}_macOS_Universal.dmg
|
Loading…
Add table
Reference in a new issue