diff --git a/.github/workflows/aur.yml b/.github/workflows/aur.yml deleted file mode 100644 index 58efc858..00000000 --- a/.github/workflows/aur.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: aur-updater -on: - push: - branches: - - master - -jobs: - update: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: update version - run: | - sed -i "s/pkgver=.*/pkgver=$(git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | tr -d 'v')/" aur/mihomo-party-git/PKGBUILD - - name: Publish AUR package - uses: KSXGitHub/github-actions-deploy-aur@v2.7.2 - with: - pkgname: mihomo-party-git - pkgbuild: aur/mihomo-party-git/PKGBUILD - commit_username: pompurin404 - commit_email: pompurin404@mihomo.party - ssh_private_key: ${{ secrets.PRIVATE_KEY }} - commit_message: Update AUR package - ssh_keyscan_types: rsa,ed25519 - allow_empty_commits: false diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9e2b2225..c186ddb8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -154,7 +154,7 @@ jobs: files: dist/*.dmg token: ${{ secrets.GITHUB_TOKEN }} - aur-updater: + aur-release-updater: strategy: fail-fast: false matrix: @@ -165,6 +165,8 @@ jobs: needs: linux runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v4 - name: Update Version run: | sed -i "s/pkgver=.*/pkgver=$(echo ${{ github.ref }} | tr -d 'refs/tags/v')/" aur/mihomo-party-bin/PKGBUILD @@ -192,3 +194,24 @@ jobs: commit_message: Update AUR package ssh_keyscan_types: rsa,ed25519 allow_empty_commits: false + + aur-git-updater: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: update version + run: | + sed -i "s/pkgver=.*/pkgver=$(git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | tr -d 'v')/" aur/mihomo-party-git/PKGBUILD + - name: Publish AUR package + uses: KSXGitHub/github-actions-deploy-aur@v2.7.2 + with: + pkgname: mihomo-party-git + pkgbuild: aur/mihomo-party-git/PKGBUILD + commit_username: pompurin404 + commit_email: pompurin404@mihomo.party + ssh_private_key: ${{ secrets.PRIVATE_KEY }} + commit_message: Update AUR package + ssh_keyscan_types: rsa,ed25519 + allow_empty_commits: false diff --git a/package.json b/package.json index df76a81a..22cad616 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mihomo-party", - "version": "0.1.3", + "version": "0.1.4", "description": "Mihomo Party", "main": "./out/main/index.js", "author": "mihomo-party",