diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index b05240a..fd3d991 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -19,10 +19,10 @@ jobs: run: | cat /proc/version - - name: Install gnupg - run: | - apt update - apt install -y gnupg + #- name: Install gnupg + #run: | + #apt update + #apt install -y gnupg - name: Change Download URL to NJU Mirror run: | @@ -31,28 +31,29 @@ jobs: echo "deb https://mirror.nju.edu.cn/ubuntu/ focal-updates main restricted universe multiverse" >> /etc/apt/sources.list echo "deb https://mirror.nju.edu.cn/ubuntu/ focal-backports main restricted universe multiverse" >> /etc/apt/sources.list echo "deb https://mirror.nju.edu.cn/ubuntu/ focal-security main restricted universe multiverse" >> /etc/apt/sources.list - - name: Add missing GPG keys for NJU mirror - run: | - # 导入公钥 3B4FE6ACC0B21F32 - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 - - # 导入公钥 871920D1991BC93C - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C + +# - name: Add missing GPG keys for NJU mirror +# run: | +# # 导入公钥 3B4FE6ACC0B21F32 +# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 +# +# # 导入公钥 871920D1991BC93C +# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C - name: Apt Update run: | - apt update + apt update --allow-unauthenticated - name: Install Node.js run: | # 更新 apt 包管理器并安装必要的工具 - apt-get update && apt-get install -y curl gnupg2 lsb-release ca-certificates + apt-get install -y curl gnupg2 lsb-release ca-certificates --allow-unauthenticated # 安装 Node.js 20.x #curl -fsSL https://deb.nodesource.com/setup_20.x | bash - - #apt-get install -y nodejs - apt install nodejs npm + #apt-get install -y nodejs + apt install nodejs npm --allow-unauthenticated # 验证安装是否成功 node -v