Skip to content

Commit

Permalink
ci: add build zip
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Mar 22, 2024
1 parent 3d01876 commit a915746
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build

on:
push:
tags:
- 'v*.*.*'
branches:
- main
paths-ignore:
- 'README.md'
- 'LICENSE'

permissions:
contents: write
discussions: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js and Pnpm
uses: actions/setup-node@v3
with:
node-version: latest
cache: 'pnpm'
- name: Install Dependency
run: pnpm install

- name: Build Page
run: pnpm zip && pnpm zip:firefox

- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
output/*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a915746

Please sign in to comment.