mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-01 11:04:26 +00:00
Changed release
This commit is contained in:
parent
8ef4a935f8
commit
c3207724fd
1 changed files with 18 additions and 62 deletions
80
.github/workflows/release.yaml
vendored
80
.github/workflows/release.yaml
vendored
|
@ -50,45 +50,19 @@ 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: Check if tag exists
|
- name: Release
|
||||||
uses: mukunku/tag-exists-action@v1.2.0
|
uses: softprops/action-gh-release@v1
|
||||||
id: checkTag
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GH_TOKEN }}
|
|
||||||
tag: ${{ github.event.inputs.version }}
|
|
||||||
- name: Create Release
|
|
||||||
if: steps.checkTag.outputs.exists == false
|
|
||||||
id: create_release
|
|
||||||
uses: actions/create-release@v1
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
name: v${{ github.event.inputs.version }}
|
||||||
|
tag_name: ${{ github.event.inputs.version }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.event.inputs.version }}
|
files: |
|
||||||
release_name: v${{ github.event.inputs.version }}
|
AdGuardHomeManager_${{ github.event.inputs.version }}_Android.aab
|
||||||
body: |
|
AdGuardHomeManager_${{ github.event.inputs.version }}_Android.apk
|
||||||
Release Notes
|
|
||||||
draft: false
|
|
||||||
prerelease: false
|
|
||||||
- name: Upload aab
|
|
||||||
id: upload-aab
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: AdGuardHomeManager_${{ github.event.inputs.version }}_Android.aab
|
|
||||||
asset_name: AdGuardHomeManager_${{ github.event.inputs.version }}_Android.aab
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
- name: Upload apk
|
|
||||||
id: upload-apk
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: AdGuardHomeManager_${{ github.event.inputs.version }}_Android.apk
|
|
||||||
asset_name: AdGuardHomeManager_${{ github.event.inputs.version }}_Android.apk
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
build-and-release-macos:
|
build-and-release-macos:
|
||||||
name: Build macOS
|
name: Build macOS
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
@ -116,32 +90,14 @@ 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: Check if tag exists
|
- name: Release
|
||||||
uses: mukunku/tag-exists-action@v1.2.0
|
uses: softprops/action-gh-release@v1
|
||||||
id: checkTag
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GH_TOKEN }}
|
|
||||||
tag: ${{ github.event.inputs.version }}
|
|
||||||
- name: Create Release
|
|
||||||
if: steps.checkTag.outputs.exists == false
|
|
||||||
id: create_release
|
|
||||||
uses: actions/create-release@v1
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
name: v${{ github.event.inputs.version }}
|
||||||
|
tag_name: ${{ github.event.inputs.version }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.event.inputs.version }}
|
files: AdGuardHomeManager_${{ github.event.inputs.version }}_macOS_Universal.dmg
|
||||||
release_name: v${{ github.event.inputs.version }}
|
|
||||||
body: |
|
|
||||||
Release Notes
|
|
||||||
draft: false
|
|
||||||
prerelease: false
|
|
||||||
- name: Upload Release Asset
|
|
||||||
id: upload-release-asset
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: AdGuardHomeManager_${{ github.event.inputs.version }}_macOS_Universal.dmg
|
|
||||||
asset_name: AdGuardHomeManager_${{ github.event.inputs.version }}_macOS_Universal.dmg
|
|
||||||
asset_content_type: application/octet-stream
|
|
Loading…
Add table
Reference in a new issue