# **What it does**: Build and deploy static site to Weixin Cloudrun. on: workflow_dispatch: push: branches: - main # 监听的分支,可以根据自己项目情况修改 pull_request: permissions: contents: read # Needed for the 'trilom/file-changes-action' action pull-requests: read # This allows a ...
action.yml entrypoint.py commit Git commit and push Example name:publishon:push:branches: -masterjobs:build:runs-on:ubuntu-lateststeps: -name:checkoutuses:actions/checkout@masterwith:ref:master-name:builduses:github-actions-x/hugo@master-name:pushuses:github-actions-x/commit@v2.9with:github-token...
提交代码,触发Github Action执行 将代码commit并push后,点开你的仓库主页,点击Action标签: 可以看到已经有了执行信息。 接着看下我们的Action到底有没有执行,点开Action标签,已经发现了Junit: 可以进行脚本代码的在线编辑: 点进本次commit执行的记录,可以看到,action顺利完成了几个步骤: 点开Maven的构建日志,可以看到...
提交代码,触发Github Action执行 将代码commit并push后,点开你的仓库主页,点击Action标签: 可以看到已经有了执行信息。 接着看下我们的Action到底有没有执行,点开Action标签,已经发现了Junit: 可以进行脚本代码的在线编辑: 点进本次commit执行的记录,可以看到,action顺利完成了几个步骤: 点开Maven的构建日志,可以看到...
github commit和push的区别 一张图来说明:
hexo clean && hexo g && hexo d && git add . && git commit -m "deploy" && git push 1. 然后才能完成github上静态博客的更新 缺点是很麻烦! 可以用action来自动化部署: https://blog.esunr.xyz/2022/06/64163235c30f.html#3-3-%E4%BD%BF%E7%94%A8-hexo-deploy-%E6%8C%87%E4%BB%A4 ...
Option 2 saysCommit and Push Option 3 saysCommit and Sync Commitwill simply make record of your changes that you have made on your local machine. It will not mark the change in the remote repository. Commit and Pushwill do the above and push it to the remote repository. This means that...
YAML的语法以及GitHub Action特有的工作机制/字段 你用来发布的平台(如PyPI)对自动化工作流的支持 下面简单梳理一下: 打tag和发布 GitHub提供的事件触发器有很多,但一般用来发布package和documentation都是用tag或者release。tag本身没什么特别的,相当于你给某个哈希命了个名,但是这个名字弄好以后就是唯一的,而且push到...
在GitHub 仓库添加完对应的.github/workflows/ci.yml文件之后,以后每次push都可以触发 action 的自动执行,以此来完成可持续的自动集成和构建能力。 二、构建 Flutter 和发布到 Github Release 简单介绍完 Github Action ,接着我们介绍如何利用 Github Action 构建 Flutter 和发布 apk 到 Github Release,如下代码所示是...
{ github.head_ref }}fetch-depth:0token:${{ secrets.PAT_TOKEN }}-name:Commit filesrun:|git config --local user.email "test@test.com"git config --local user.name "Test"git commit -a -m "Add changes"-name:Push changesuses:ad-m/github-push-action@masterwith:github_token:${{ secrets...