generated from KevinBatdorf/gutenberg-rust-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (36 loc) · 1.35 KB
/
build-production-zip.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build production zip file
on: push
jobs:
build:
name: Build zip file
concurrency:
group: production - ${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: npm install and build
run: |
npm ci
npx eslint --max-warnings 0 .
npm run build
env:
CI: true
- name: Package
uses: actions/upload-artifact@v3
with:
name: code-block-pro
retention-days: 5
path: |
${{ github.workspace }}/
!${{ github.workspace }}/node_modules/
!${{ github.workspace }}/cypress/
!${{ github.workspace }}/target/
!${{ github.workspace }}/scripts/
!${{ github.workspace }}/.git/
!${{ github.workspace }}/.github/
!${{ github.workspace }}/.wordpress-org/
!${{ github.workspace }}/assets/
!${{ github.workspace }}/scripts/
!${{ github.workspace }}/package-lock.json