首次提交
This commit is contained in:
22
chengduTestPlant/.github/workflows/deploy.yml
vendored
Normal file
22
chengduTestPlant/.github/workflows/deploy.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Deploy to Gitee
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- run: |
|
||||
git config user.email "root@imoi.cn"
|
||||
git config user.name "xmo"
|
||||
git remote rm origin
|
||||
git remote add origin https://xmo:${{ secrets.GITEE_TOKEN }}@gitee.com/mineadmin/mineadmin-vue.git
|
||||
git push -f origin main
|
||||
Reference in New Issue
Block a user