mirror of
http://124.126.16.154:8888/singularity/hdk-pay.git
synced 2026-01-15 03:35:06 +08:00
- 修改 /etc/apt/sources.list 文件,将 Debian 官方镜像源替换为阿里云镜像源 - 更新 security.debian.org 为阿里云镜像源 - 这些更改旨在提高构建过程中的下载速度和可靠性
30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
name: Release development version to registry
|
|
on:
|
|
push:
|
|
tags:
|
|
- '**.**'
|
|
|
|
jobs:
|
|
Publish on Tagged:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
- name: List files in the repository
|
|
run: |
|
|
ls ${{ gitea.workspace }}
|
|
- name: Zip files in the repository
|
|
run: |
|
|
sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list
|
|
sed -i 's|security.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list
|
|
apt-get update
|
|
apt-get install zip
|
|
zip -r dist.zip *
|
|
- name: Publish to registry
|
|
run: |
|
|
curl --user ch4o5:4fd300672472e666014314c1c94c604c634165a9 \
|
|
--upload-file ./dist.zip \
|
|
https://nest.doylee.cn/api/packages/HDK/composer?version=${{ gitea.ref_name }}
|
|
- run: echo "🍏 This job's status is ${{ job.status }}." |