Skip to content

Create webpack.yml

Create webpack.yml #19

name: Build production zip file
on:
push:
workflow_dispatch:
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: Install wasm-pack
uses: jetli/[email protected]
- name: npm install and build
run: |
npm ci
npm run build
env:
CI: true
- name: Package
uses: actions/upload-artifact@v3
with:
name: xeet-wp
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
!${{ github.workspace }}/Cargo.lock