Skip to content

Commit

Permalink
[✨] GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Yingyya authored Jul 21, 2024
1 parent 83ebc93 commit 5049270
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Package

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v2

- name: Install dependencies
run: |
npm install -g yarn
yarn install
- name: Build projext
run: yarn build

- name: Package dist folder
run: zip -r dist.zip dist

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: dist.zip
path: dist.zip

0 comments on commit 5049270

Please sign in to comment.