48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
name: build documentation and publish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: remove all file except icon.png
|
|
run: find . -type f -not \( -name 'icon.png' -or -name '*.json' -or -name '*.yml' \) -delete
|
|
- name: Pushes to another repository
|
|
uses: cpina/github-action-push-to-another-repository@main
|
|
env:
|
|
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB2 }}
|
|
with:
|
|
source-directory: './Apps'
|
|
destination-github-username: 'IceWhaleTech'
|
|
destination-repository-name: '_appstore'
|
|
user-email: q2676515970@163.com
|
|
target-directory: './Apps'
|
|
- name: Copycat
|
|
uses: andstor/copycat-action@v3
|
|
with:
|
|
personal_token: ${{ secrets.API_TOKEN_GITHUB2 }}
|
|
src_path: ./category-list.json
|
|
dst_owner: IceWhaleTech
|
|
dst_repo_name: _appstore
|
|
email: q2676515970@163.com
|
|
src_branch: main
|
|
dst_branch: main
|
|
- name: Copycat1
|
|
uses: andstor/copycat-action@v3
|
|
with:
|
|
personal_token: ${{ secrets.API_TOKEN_GITHUB2 }}
|
|
src_path: ./recommend-list.json
|
|
dst_owner: IceWhaleTech
|
|
dst_repo_name: _appstore
|
|
dst_path: ./
|
|
email: q2676515970@163.com
|
|
src_branch: main
|
|
dst_branch: main
|