Skip to content

workflow: 使用旧版本的 action #3

workflow: 使用旧版本的 action

workflow: 使用旧版本的 action #3

Workflow file for this run

name: CI
on: [push]
jobs:
prepare:
runs-on: ubuntu-latest
container:
image: node:10.24.1
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
build:
needs: prepare
runs-on: ubuntu-latest
container:
image: node:10.24.1
steps:
- uses: actions/checkout@v2
- name: Build
run: npm run build
zip:
needs: build
runs-on: ubuntu-latest
container:
image: alpine:latest
steps:
- uses: actions/checkout@v2
- name: Prepare environment
run: |
apk add zip
- name: Zip files
run: |
cd icon-font
zip -r icon-font.zip *
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: icon-font.zip
path: icon-font/icon-font.zip