publish
This commit is contained in:
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@@ -10,8 +10,14 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
sendkey: ${{ secrets.sendkey }}
|
sendkey: ${{ secrets.sendkey }}
|
||||||
title: "server酱Action更新啦"
|
title: "server酱Action更新啦 ${{ steps.current-time.outputs.formattedTime }}"
|
||||||
|
|
||||||
|
|||||||
14
RoboFile.php
Normal file
14
RoboFile.php
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* This is project's console commands configuration for Robo task runner.
|
||||||
|
*
|
||||||
|
* @see https://robo.li/
|
||||||
|
*/
|
||||||
|
class RoboFile extends \Robo\Tasks
|
||||||
|
{
|
||||||
|
// define public methods as commands
|
||||||
|
public function publish()
|
||||||
|
{
|
||||||
|
$this->_exec("yarn build && yarn package && git add . && git commit -m 'publish' && git push ");
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user