From ab4a36126c4dce313f630e19ea1a5bac848657bd Mon Sep 17 00:00:00 2001 From: Easy Date: Sat, 4 Feb 2023 17:31:24 +0800 Subject: [PATCH] publish --- .github/workflows/test.yml | 8 +++++++- RoboFile.php | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 RoboFile.php diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8b8350f..f4f4f33 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,8 +10,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Get current time + uses: josStorer/get-current-time@v2.0.2 + id: current-time + with: + format: YYYYMMDD-HH + utcOffset: "+08:00" - uses: ./ with: sendkey: ${{ secrets.sendkey }} - title: "server酱Action更新啦" + title: "server酱Action更新啦 ${{ steps.current-time.outputs.formattedTime }}" diff --git a/RoboFile.php b/RoboFile.php new file mode 100644 index 0000000..df11255 --- /dev/null +++ b/RoboFile.php @@ -0,0 +1,14 @@ +_exec("yarn build && yarn package && git add . && git commit -m 'publish' && git push "); + } +} \ No newline at end of file