Skip to content

Commit

Permalink
ci: add workflow for releasing build artifacts (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
true1ann authored Dec 2, 2024
1 parent 7adf4a3 commit 9592066
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-artifact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build & Upload Artifact
on:
push:
branches:
- main
pull_request:
branches:
- main

permissions: write-all

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

- name: Install Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install Dependencies
run: bun install

- name: Build Revenge
run: bun run build -- --minify

- name: Upload revenge.min.js
uses: actions/upload-artifact@v4
with:
name: revenge-min
path: ./dist/revenge.min.js

- name: Upload revenge.js
uses: actions/upload-artifact@v4
with:
name: revenge
path: ./dist/revenge.js

0 comments on commit 9592066

Please sign in to comment.