feat: sync to gitea (gitea action push to github have some question and set version v1.0.2
This commit is contained in:
parent
05d1a38f6c
commit
4cdbf970ee
32
.github/workflows/push.yaml
vendored
Normal file
32
.github/workflows/push.yaml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: Sync to Gitea
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync-to-gitea:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # Fetch all history for all branches and tags
|
||||||
|
|
||||||
|
- name: Set up Git
|
||||||
|
run: |
|
||||||
|
git config --global user.name "GitHub Action wds"
|
||||||
|
git config --global user.email "wdsnpshy@163.com"
|
||||||
|
|
||||||
|
- name: Add Gitea remote with authentication
|
||||||
|
run: |
|
||||||
|
git remote add gitea https://${{ secrets.GITEA_USER }}:${{ secrets.GITEA_PASSWORD }}@cloud-home.dxh-wds.top:20110/w/AutoTerminal.git
|
||||||
|
|
||||||
|
- name: Push all branches to Gitea
|
||||||
|
run: |
|
||||||
|
git push gitea main --force
|
||||||
|
|
||||||
|
- name: Push tags to Gitea
|
||||||
|
run: |
|
||||||
|
git push gitea --tags --force
|
||||||
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "autoterminal"
|
name = "autoterminal"
|
||||||
version = "1.0.1"
|
version = "1.0.2"
|
||||||
description = "智能终端工具,基于LLM将自然语言转换为终端命令(create by claude 4 sonnet)"
|
description = "智能终端工具,基于LLM将自然语言转换为终端命令(create by claude 4 sonnet)"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user