xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

如何构建一个自己的 GitHub Actions All In One

如何构建一个自己的 GitHub Actions All In One

GitHub Actions

custom actions

自定义操作

https://docs.github.com/cn/actions/creating-actions/about-custom-actions

https://docs.github.com/cn/actions/learn-github-actions/finding-and-customizing-actions

https://docs.github.com/cn/actions/creating-actions

https://docs.github.com/cn/actions/quickstart

GitHub marketplace

在 GitHub Marketplace 中上架您的工具,供开发者使用或购买

https://docs.github.com/cn/developers/github-marketplace

https://github.com/marketplace/new

github lab

https://lab.github.com/githubtraining/github-actions:-hello-world

github skills

https://github.blog/2022-06-06-introducing-github-skills/

https://skills.github.com/
https://github.com/skills/hello-github-actions

https://github.com/skills/writing-javascript-actions

GitHub Logos

https://github.com/logos

create custom actions

https://github.com/actions

https://github.com/actions/typescript-action

https://github.com/ncipollo/release-action

https://github.com/marketplace/actions/create-release

demo

https://github.com/JamesIves/github-pages-deploy-action/blob/dev/src/lib.ts

https://github.com/JamesIves/github-pages-deploy-action/blob/dev/package.json

核心依赖 @actions/core


  "dependencies": {
    "@actions/core": "1.9.0",
    "@actions/exec": "1.1.1",
    "@actions/github": "5.0.3",
    "@actions/io": "1.1.2"
  },

https://github.com/JamesIves/github-pages-deploy-action/blob/dev/action.yml

https://github.com/JamesIves/github-pages-deploy-action/blob/dev/.github/workflows/deploy.yml

      - name: Build and Deploy
        uses: JamesIves/github-pages-deploy-action@releases/v2
        env:
          ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
          BASE_BRANCH: master # The branch the action should deploy from.
          BRANCH: gh-pages # The branch the action should deploy to.
          FOLDER: build # The folder the action should deploy.
          BUILD_SCRIPT: npm install && npm run-script build # The build script the action should run prior to deploying.

refs

https://docs.github.com/en/actions/deployment/about-deployments/deploying-with-github-actions

https://docs.github.com/en/actions/guides

https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

https://www.ruanyifeng.com/blog/2019/09/getting-started-with-github-actions.html

https://github.com/xgqfrms/github-secrets-all-in-one
https://github.com/xgqfrms/cdn/issues/63



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2022-07-20 12:38  xgqfrms  阅读(97)  评论(4编辑  收藏  举报