体会到了自动化的乐趣,go程序打个tag发布各种平台编译的包。
对于go程序,参考httpx的action https://github.com/projectdiscovery/httpx/tree/master/.github/workflows
有编译和发布的,它的go发布用的goreleaser
,定义一些yml参数
https://github.com/projectdiscovery/httpx/blob/master/.goreleaser.yml
就可以在release中发布全平台的编译程序。
对于一些整理的小项目,用python写个小脚本,所有的push、pull都检查一遍,十分方便。
python代码直接print就行,后面判断条件用assert()
来抛出异常。
name: Check on: [push, pull_request] jobs: check: runs-on: ubuntu-18.04 steps: - uses: actions/setup-python@v1 with: python-version: 3.7 - uses: actions/checkout@v2 with: fetch-depth: 1 - name: Prepare run: | cd $GITHUB_WORKSPACE && \ pip3 install -r requirements.txt - name: Check run: | cd $GITHUB_WORKSPACE && \ python3 check.py ./fingerprints/
发表评论