【发布时间】:2020-05-12 10:49:52
【问题描述】:
我正在尝试了解 CI/CD 管道的工作原理。
我决定将它与我的投资组合页面一起使用,该页面应该在每次推送时重新运行。
这是我的 yaml 配置:
name: Build Bundle for Github Pages
on:
push:
branches:
- source
env:
NODE_ENV: production
PUBLIC_URL: http://crrmacarse.github.io/
GA_TRACKING_CODE: ${{ secrets.GA_TRACKING_CODE }}
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
persist-credentials: false
- name: Build
run: |
npm install
npm run prod:pipeline
npm run sitemap
cp dist/index.html dist/404.html
cp google21029c74dc702d92.html dist/
cp robots.txt dist/
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: source
FOLDER: dist
这是错误:
webpack 配置的源代码: https://github.com/crrmacarse/crrmacarse.github.io/blob/source/compiler/production.pipeline.js
【问题讨论】:
标签: github webpack continuous-integration github-pages continuous-deployment