From f4ecf5ff05a5014f8941bef6b9b403230301c5f4 Mon Sep 17 00:00:00 2001 From: lesfox Date: Wed, 1 Feb 2023 00:08:43 +0800 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7bf69b8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,21 @@ +name: 'Bt' + +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * 0' + +jobs: + bot: + runs-on: ubuntu-latest + steps: + - name: 'Checkout codes' + uses: actions/checkout@v2 + - name: 'Get Tracker' + run: bash ./bt.sh + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.TRACKER_TOKEN }} + PUBLISH_BRANCH: main + publish_dir: ./tracker