From 514d6f07cbde3279a560355fefbc9b9087cf8c5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=90=E8=AF=9D?= <49544781+xiaomeng9597@users.noreply.github.com> Date: Sun, 14 Apr 2024 11:37:54 +0800 Subject: [PATCH] Add files via upload --- .github/workflows/sync-files2.yml | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/sync-files2.yml diff --git a/.github/workflows/sync-files2.yml b/.github/workflows/sync-files2.yml new file mode 100644 index 0000000..b20a52e --- /dev/null +++ b/.github/workflows/sync-files2.yml @@ -0,0 +1,39 @@ +name: Sync Files2 + +on: + repository_dispatch: + workflow_dispatch: + schedule: + - cron: 55 15 * * * + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: 准备完成 + uses: actions/checkout@main + + - name: 下载架构编译配置文件 + run: | + mkdir -p ./configfiles + cp -f $GITHUB_WORKSPACE/opfiles/* ./configfiles + rm -rf ./opfiles + + - name: 同步配置 + uses: peaceiris/actions-gh-pages@v3 + with: + personal_token: ${{ secrets.ACCESS_TOKEN }} + publish_branch: main + publish_dir: ./ + user_name: 'GitHub Action' + user_email: 'github-actions[bot]@github.com' + exclude_assets: '' + keep_files: true + commit_message: "Sync files" + + - name: 删除运行记录 + uses: xiaomeng9597/delete-workflow-runs@main + with: + retain_days: 1 + keep_minimum_runs: 1 + token: ${{ secrets.ACCESS_TOKEN }}