mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
ci: re-init AUR release
This commit is contained in:
1 parent
b043120363
commit
b7da452276
3 files changed
+51
-45
No files matched your search
@@ -317,46 +317,52 @@ jobs:
|
||||
$Installer_x64_url = "https://github.com/v2rayA/v2rayA/releases/download/v${{ steps.prep.outputs.VERSION }}/installer_windows_inno_x64_${{ steps.prep.outputs.VERSION }}.exe"
|
||||
$Installer_ARM64_url = "https://github.com/v2rayA/v2rayA/releases/download/v${{ steps.prep.outputs.VERSION }}/installer_windows_inno_arm64_${{ steps.prep.outputs.VERSION }}.exe"
|
||||
./wingetcreate.exe update v2rayA.v2rayA --urls $Installer_x64_url $Installer_ARM64_url --version ${{ steps.prep.outputs.VERSION }} --token ${{ secrets.HOMEBREW_V2RAYA_TOKEN }} --submit
|
||||
# Release_to_AUR:
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: [GitHub_Release]
|
||||
# steps:
|
||||
# - uses: actions/checkout@v7
|
||||
# with:
|
||||
# fetch-depth: 0
|
||||
# - name: Check Version
|
||||
# id: prep
|
||||
# shell: bash
|
||||
# env:
|
||||
# REF: ${{ inputs.tag }}
|
||||
# run: |
|
||||
# tag=${{ inputs.tag }}
|
||||
# version=$(echo $tag | sed 's/v//g')
|
||||
# echo "VERSION=$version" >> $GITHUB_OUTPUT
|
||||
# echo "VERSION=$version" >> $GITHUB_ENV
|
||||
# - name: Download v2rayA binary for checksum
|
||||
# run: |
|
||||
# mkdir v2raya_linux
|
||||
# for arch in x86 x64 loongarch64 armv7 arm64; do
|
||||
# curl -L https://github.com/v2rayA/v2rayA/releases/download/v${VERSION}/v2raya_linux_${arch}_${VERSION} -o v2raya_linux/v2raya_linux_${arch}_${VERSION}
|
||||
# chmod +x v2raya_linux/v2raya_linux_${arch}_${VERSION}
|
||||
# curl -L https://github.com/v2rayA/v2rayA/releases/download/v${VERSION}/v2raya_core_linux_${arch}_${VERSION} -o v2raya_linux/v2raya_core_linux_${arch}_${VERSION}
|
||||
# chmod +x v2raya_linux/v2raya_core_linux_${arch}_${VERSION}
|
||||
# done
|
||||
# - name: List Files and Install expect
|
||||
# run: |
|
||||
# sudo apt update -y && sudo apt install -y expect >/dev/null
|
||||
# ls -l v2raya_linux
|
||||
# echo "P_DIR=$(pwd)" >> $GITHUB_ENV
|
||||
# echo "P_DIR=$(pwd)" >> $GITHUB_OUTPUT
|
||||
# id: set_path
|
||||
# - name: Release to AUR
|
||||
# env:
|
||||
# SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
# SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
|
||||
# run: |
|
||||
# eval $(ssh-agent)
|
||||
# printf '%s\n' "$SSH_PRIVATE_KEY" > ./key
|
||||
# chmod 0600 ./key
|
||||
# ./install/aur/tool/ssh-add_expect ./key
|
||||
# bash install/aur/deploy.sh
|
||||
Release_to_AUR:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [GitHub_Release]
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Check Version
|
||||
id: prep
|
||||
shell: bash
|
||||
env:
|
||||
REF: ${{ inputs.tag }}
|
||||
run: |
|
||||
tag=${{ inputs.tag }}
|
||||
version=$(echo $tag | sed 's/v//g')
|
||||
echo "VERSION=$version" >> $GITHUB_OUTPUT
|
||||
echo "VERSION=$version" >> $GITHUB_ENV
|
||||
- name: Clone & Update AUR Repository
|
||||
run: |
|
||||
mkdir -p aur
|
||||
git clone https://aur.archlinux.org/v2raya.git aur/v2raya
|
||||
git clone https://aur.archlinux.org/v2raya-bin.git aur/v2raya-bin
|
||||
cp install/aur/v2raya/.INSTALL aur/v2raya/.INSTALL
|
||||
cp install/aur/v2raya-bin/.INSTALL aur/v2raya-bin/.INSTALL
|
||||
cat install/aur/v2raya/PKGBUILD | sed "s|The_Real_Version|${{ steps.prep.outputs.VERSION }}|g" > aur/v2raya/PKGBUILD
|
||||
cat install/aur/v2raya-bin/PKGBUILD | sed "s|The_Real_Version|${{ steps.prep.outputs.VERSION }}|g" > aur/v2raya-bin/PKGBUILD
|
||||
- name: Install Podman
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y podman
|
||||
- name: Init Arch Linux Container
|
||||
run: |
|
||||
podman pull docker.io/archlinux:latest
|
||||
podman run -d --rm --name archContainer -v $PWD/aur:/aur docker.io/archlinux:latest sleep infinity
|
||||
podman exec archContainer pacman -Syu base-devel pacman-contrib --noconfirm
|
||||
- name: Update HASH
|
||||
run: |
|
||||
podman exec archContainer bash -c "cd /aur/v2raya-bin && updpkgsums"
|
||||
- name: Import GPG Key
|
||||
uses: crazy-max/ghaction-import-gpg@v7
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||
git_user_signingkey: true
|
||||
git_commit_gpgsign: true
|
||||
- name: Commit & Push to AUR
|
||||
run: |
|
||||
Current_Dir=$(pwd)
|
||||
cd $Current_Dir/aur/v2raya && git add .SRCINFO .INSTALL && git commit -m "Update to v${{ steps.prep.outputs.VERSION }}" && git push --force ssh://aur@aur.archlinux.org/v2raya.git
|
||||
cd $Current_Dir/aur/v2raya-bin && git add .SRCINFO .INSTALL && git commit -m "Update to v${{ steps.prep.outputs.VERSION }}" && git push --force ssh://aur@aur.archlinux.org/v2raya-bin.git
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
pkgname=v2raya-bin
|
||||
_pkgname=v2raya
|
||||
pkgver={{pkgver}}
|
||||
pkgver=The_Real_Version
|
||||
pkgrel=1
|
||||
install=.INSTALL
|
||||
pkgdesc="A web GUI client of Project V which supports VMess, VLESS, SS, SSR, Trojan, Tuic and Juicity protocols"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Maintainer: mzz2017 <mzz@tuta.io>
|
||||
|
||||
pkgname=v2raya
|
||||
pkgver={{pkgver}}
|
||||
pkgver=The_Real_Version
|
||||
pkgrel=1
|
||||
install=.INSTALL
|
||||
pkgdesc="A web GUI client of Project V which supports VMess, VLESS, SS, SSR, Trojan, Tuic and Juicity protocols"
|
||||
|
||||
Reference in new issue
Block a user