fix ci.
Some checks failed
Some checks failed
This commit is contained in:
parent
f5f6569051
commit
9c8194dec2
@ -8,12 +8,19 @@ jobs:
|
|||||||
Build:
|
Build:
|
||||||
runs-on: [ubuntu-latest, ubuntu-24.04]
|
runs-on: [ubuntu-latest, ubuntu-24.04]
|
||||||
container:
|
container:
|
||||||
image: frp-by1.wwvvww.cn:45288/ubuntu_dev:24.04
|
image: registry.cn-shenzhen.aliyuncs.com/amass_toolset/ubuntu_dev:24.04
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Set up SSH
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
mkdir -p ~/.ssh/
|
||||||
fetch-depth: 0
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
ssh-keyscan -t ed25519 -p 22022 frp-by1.wwvvww.cn >> ~/.ssh/known_hosts
|
||||||
|
- name: Clone repository
|
||||||
|
run: |
|
||||||
|
echo "git clone --depth 1 --branch=${GITHUB_REF##*/} ssh://git@frp-by1.wwvvww.cn:22022/${{ gitea.repository }}.git"
|
||||||
|
git clone --depth 1 --branch=${GITHUB_REF##*/} ssh://git@frp-by1.wwvvww.cn:22022/${{ gitea.repository }}.git .
|
||||||
|
git checkout ${GITHUB_SHA}
|
||||||
- run: resources/build.sh build
|
- run: resources/build.sh build
|
||||||
- run: resources/build.sh deploy
|
- run: resources/build.sh deploy
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
|
@ -8,8 +8,11 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: [windows11]
|
runs-on: [windows11]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Clone repository
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
$branch = "${{ github.ref }}" -replace '^refs/heads/', ''
|
||||||
|
git clone --depth 1 --branch=$branch https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_PASSWORD }}@amass.fun/gitea/${{ gitea.repository }}.git .
|
||||||
|
git checkout ${{ github.sha }}
|
||||||
- name: Build and deploy
|
- name: Build and deploy
|
||||||
run: |
|
run: |
|
||||||
resources/build.ps1 build
|
resources/build.ps1 build
|
||||||
@ -20,4 +23,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
body_path: build/CHANGELOG.txt
|
body_path: build/CHANGELOG.txt
|
||||||
files: |-
|
files: |-
|
||||||
build/SmartLockerTools.zip
|
build/SmartLockerTools_${{ env.tag }}.zip
|
Loading…
Reference in New Issue
Block a user