GitHub 标签

Npm_Github_Action 实例

  |   0 评论   |   0 浏览

Yml name: deploy on: [release] jobs: build: name: building runs-on: ubuntu-16.04 steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2-beta with: node-version: "14" - run: npm install - run: npm run build - uses: appleboy/scp-action@master with: host: {{ secrets.REMOTE_HOST }} username: {{ secrets.REMOTE_USER }} password: {{ secrets.PASSWORD }} port: {{ secrets.PORT }} source: ".nuxt" target: {{ secrets.REMOTE_TARGET}} - uses: docker://evaneos/ssh-action:0.1.0 with: host: {{ sec....

GitHub Action

  |   0 评论   |   0 浏览

WorkFlow GithubWorkFlow 就是 Git 自带的 CI 服务 WorkFlow 文件 name: Greet Everyone # 事件 on: [push] # 工作集合 jobs: build: # 作业名称为 Greeting name: Greeting # 此作业在 Linux 上运行,runs-on 选项一共就有几种类型 runs-on: ubuntu-latest steps: # 此步骤使用 GitHub 的 hello-world-javascript-action:https://github.com/actions/hello-world-javascript-action - name: Hello world uses: actions/hello-world-javascript-action@v1 with: who-to-greet: 'Mona the Octocat' id: hello # 此步骤打印上一步操作的输出(时间)。 - name: Echo the greeting's time run: echo 'The time was $....