Skip to content

Commit

Permalink
fix release bug in macos
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com authored Jan 18, 2024
1 parent 95df6cc commit ad223b3
Showing 1 changed file with 40 additions and 42 deletions.
82 changes: 40 additions & 42 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,37 +25,37 @@ jobs:
fail-fast: false
matrix:
include:
# - platform: android-apk
# os: ubuntu-latest
# targets: apk

# - platform: android-aab
# os: ubuntu-latest
# targets: aab

# - platform: windows
# os: windows-latest
# aarch: amd64
# targets: exe
# filename: hiddify-windows-x64

# - platform: linux-appimage
# os: ubuntu-latest
# aarch: amd64
# targets: AppImage
# filename: hiddify-linux-x64

# - platform: linux-deb
# os: ubuntu-latest
# aarch: amd64
# targets: deb
# filename: hiddify-debian-x64
- platform: android-apk
os: ubuntu-latest
targets: apk

- platform: android-aab
os: ubuntu-latest
targets: aab

- platform: windows
os: windows-latest
aarch: amd64
targets: exe
filename: hiddify-windows-x64

- platform: linux-appimage
os: ubuntu-latest
aarch: amd64
targets: AppImage
filename: hiddify-linux-x64

- platform: linux-deb
os: ubuntu-latest
aarch: amd64
targets: deb
filename: hiddify-debian-x64

# - platform: linux-rpm
# os: ubuntu-latest
# aarch: amd64
# targets: rpm
# filename: hiddify-rpm-x64
- platform: linux-rpm
os: ubuntu-latest
aarch: amd64
targets: rpm
filename: hiddify-rpm-x64

- platform: macos
os: macos-13
Expand All @@ -70,13 +70,6 @@ jobs:
- name: Setup Apple dependencies
if: matrix.platform == 'macos' || matrix.platform == 'ios'
run: |
# xcode-select --install || softwareupdate --all --install --force
# brew uninstall --force $(brew list | grep python@) && brew cleanup || echo "python not installed"
# brew uninstall --ignore-dependencies python
# echo "all pythons are removed"
# brew reinstall [email protected]
# echo "python3.11 is installed now"
#python3 -m pip install --upgrade setuptools pip
brew install create-dmg tree
echo "installed create-dmg tree "
npm install -g appdmg
Expand Down Expand Up @@ -275,7 +268,16 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: 'draft'
deleteOnlyFromDrafts: false


- name: prepare_release_message
run: |
pip install gitchangelog pystache mustache markdown
prelease=$(curl --silent "https://api.github.com/repos/hiddify/hiddify-next/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')
current="${{ github.ref_name }}"
sed 's|RELEASE_TAG|${{ env.TAG_NAME }}|g' ./.github/release_message.md > release.md
echo -e "\n\n<details markdown=1><summary>All changes from $current to the latest commit:</summary>\n\n">>release.md
gitchangelog $prelease.. >> release.md
echo -e "\n\n</details>">>release.md
- name: Create or Update Draft Release
uses: softprops/action-gh-release@v1
env:
Expand Down Expand Up @@ -309,10 +311,6 @@ jobs:
- name: prepare_release_message
run: |
pip install gitchangelog pystache mustache markdown
# prelease=$(curl --silent "https://api.github.com/repos/hiddify/hiddify-next/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')
# current="${{ github.ref_name }}"
# gitchangelog $prelease..$current > release.md
sed 's|RELEASE_TAG|${{ env.TAG_NAME }}|g' ./.github/release_message.md >> release.md
- name: Upload Release
Expand Down

0 comments on commit ad223b3

Please sign in to comment.