GitHub Actions Demo #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: GitHub Actions Demo | |
| run-name: GitHub Actions Demo | |
| # 觸發此 action 的時機 | |
| on: | |
| push: | |
| branchs: # 只要有任何一個 commit 被 push,就會觸發此 action | |
| '*' | |
| workflow_dispatch: # 可以手動執行此 action | |
| # 預先定義此 action 要幹嘛 | |
| jobs: | |
| demo: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: echo '執行成功' |