Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): add zip bot #799

Merged
merged 5 commits into from
Oct 30, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/zip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and Zip

on:
pull_request:
types: [opened, synchronize, reopened, edited]

push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
# Step 1: Check out the repository
- name: Check out code
uses: actions/checkout@v4

# Step 2: Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

# Step 3: Install dependencies
- name: Install dependencies
run: npm install

# Step 4: Build the project
- name: Run build script
run: npm run build

# Step 5: Create a ZIP of the build
- name: Zip the build
run: |
mkdir -p output
zip -r output/build.zip ./build

# Step 6: Upload the ZIP file as an artifact (optional)
stavares843 marked this conversation as resolved.
Show resolved Hide resolved
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: build-zip
path: output/build.zip
Loading