筱筱动力 (@xxdlovo) 在 水一帖, github的actions真好用 中发帖
[image]
自己的node项目要用到ci/cd, 以前一直都是用dron. 因为国内的docker被屏蔽, 有时候很多镜像无法下载, 而且前端项目打包的node_modules也很多, 用drone的体验是越来越差了.
突然想起来github能免费用工作流, ai写了80%的代码, 部署成功了. 大概流程如下:
name: Build and Deploy
on:
push:
branches:
- main
jobs:
build-push:
runs-on: ubuntu-latest
environment: prod
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
...