然后再编写一下index.js: constcore=require("@actions/core");constaxios=require("axios");functionsleep(s){returnnewPromise((resolve,_reject)=>{setTimeout(()=>{resolve();},s*1000);});}asyncfunctionfetch_release(){constgroup=core.getInput("group");constrepo=core.getInput("repo");consttag...
uses: actions/checkout@v2 # step2: install node env - name: Install Node.js uses: actions/setup-node@v2 with: node-version: '16.x' - name: Install system deps if: matrix.os == 'ubuntu-latest' run: | sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils...
steps:- uses: actions/checkout@v1- name: Install Node.jsuses: actions/setup-node@v1with:node-version: '12.16.2'- name: Install npm dependenciesrun: npm install- name: Run build taskrun: npm run build- name: Deploy to Serveruses: easingthemes/ssh-deploy@v2.1.5env:SSH_PRIVATE_KEY: $...
任务插件化,持续丰富的插件开源市场:得益于 Github 定义了 Actions 规范,让我们使用的 Actions 时都是按某种已知规则开发,这使得 Actions 更易于装配复用,很多优秀的开发者在制作完成工作流后,将自己开发的 Actions 放到 GitHub 的Actions 集市上去,这样尚未完成自己常规工作流的开发,不需要额外开发这些已有重复逻辑直接...
uses: peaceiris/actions-hugo@v2 with: hugo-version: '0.65.3' # 为了将资源部署到云服务器,此处下载一个ssh传资料的工具 - name: Setup sshpass run: sudo apt-get install sshpass # 进行前端资源的构建 - name: Build run: hugo --minify -d nebula-website ...
1、点击进入自己账号 Fork 过来的 Lean-OpenWrt 项目。再点击 Actions ,如下图1、2。 2、在 Actions 页面中,点击下方按钮,如下图3。开启成功后,你会见到类似下图4的界面。 二、制作Workflows 文件 说明:因为要使 Github Action 的虚拟环境执行我们想要的操作,是要通过 Workflows 文件来实现的。如现在我们需要编...
ADD https://raw.githubusercontent.com/guilhem/apt-get-install/master/apt-get-install /usr/bin/ RUN chmod +x /usr/bin/apt-get-install How to use Before (dirty) RUN apt-get install -y my_package Before (clean) RUN apt-get update && apt-get install -y my_package && apt-get auto...
GitHub Actions 目前(2019 年 11 月 11 日)还处在Beta阶段,需要申请才能使用,申请后在仓库主页就可以看到Actions按钮了。 基础概念# workflow (工作流程):持续集成一次运行的过程。 job (任务):一个 workflow 由一个或多个 job 构成,含义是一次持续集成的运行,可以完成多个任务。
Build with GitHub actions: (advanced version) name: "Build Armbian" on: workflow_dispatch: jobs: build-armbian: runs-on: ubuntu-latest steps: - uses: armbian/build@main with: armbian_token: "${{ secrets.GITHUB_TOKEN }}" # GitHub token armbian_release: "jammy" # userspace armbian_target...
If you want to work with Git locally, but do not want to use the command line, you can download and install the GitHub Desktop client. For more information, see About GitHub Desktop. If you do not need to work with files locally, GitHub lets you complete many Git-related actions directl...