You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
568tools/.github/workflows/568tools_Release.yml

47 lines
1.3 KiB

2 years ago
name: Release & Merge
on:
push:
branches:
- '**'
- '!release'
jobs:
Release:
runs-on: ubuntu-latest
steps:
- name: clone
run: |
echo '创建 tree/'
2 years ago
mkdir tree
echo '克隆 三个分支:'
2 years ago
git clone https://github.com/PJ-568/568tools.git -b assets tree/assets
git clone https://github.com/PJ-568/568tools.git -b main tree/main
git clone https://github.com/PJ-568/568tools.git -b release tree/release
echo '检查 tree/assets'
ls tree/assets
echo '检查 tree/main'
ls tree/main
echo '检查 tree/release'
ls tree/release
- name: merge
run: |
echo '清空 tree/release'
2 years ago
rm -r tree/release/*
echo '检查 tree/release'
ls tree/release
echo '复制 tree/assets/* 到 tree/release/'
cp -v -u -r tree/assets/* tree/release/
echo '复制 tree/main/* 到 tree/release/'
cp -v -u -r tree/main/* tree/release/
2 years ago
- name: push
run: |
cd tree/release
# git config --global user.name "PJ569-bot"
# git config --global user.email "LiuTian-PJ568@PJ568.eu.org"
2 years ago
git add -A
git commit -m '自动 Release'
git push