Skip to content

Commit

Permalink
fix: workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
icai committed Apr 10, 2024
1 parent 806f005 commit a6e7dae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 45 deletions.
33 changes: 13 additions & 20 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,24 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Checkout 🛎️
uses: actions/checkout@master
with:
node-version: ${{ matrix.node-version }}
persist-credentials: false

- name: Install dependencies
- name: Install 🔧
run: |
npm install -g pnpm
pnpm install
- name: Build project
run: pnpm run build:h5

- name: Deploy on master branch
if: github.ref == 'refs/heads/master' && github.event_name == 'push' && github.event.pull_request == null
- name: Build 🏗️
run: |
export COMMIT_MSG="$(git log --format='%h - %B' --no-merges -n 1)"
export COMMIT_USER="$(git log --no-merges -n 1 --format=%an)"
export COMMIT_EMAIL="$(git log --no-merges -n 1 --format=%ae)"
export ROT_TOKEN="${{ secrets.GITHUB_TOKEN }}"
sh build/deploy-ci.sh
pnpm run build:h5
- name: Deploy to GH Pages 🚀
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist
cname: taro.w3cub.com
25 changes: 0 additions & 25 deletions build/deploy-ci.sh

This file was deleted.

0 comments on commit a6e7dae

Please sign in to comment.