Skip to content

Commit

Permalink
ci: rolling-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayideyia committed Jul 3, 2024
1 parent 7162a08 commit 46a481d
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/rolling-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Rolling Release

on:
push:
branches: [main]

workflow_dispatch:

jobs:
Build:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "latest"
cache: "pnpm"
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Install dependencies
run: |
cd frontend && pnpm install
- name: Build Frontend
run: cd frontend && pnpm build
- name: Create a compressed file
run: |
cd frontend
mv dist rolling-release
zip -r rolling-release.zip rolling-release
- name: Create Release and Upload Assets
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: frontend/rolling-release.zip
asset_name: rolling-release.zip
tag: rolling-release
release_name: rolling-release
overwrite: true
draft: false
prerelease: true
body: |
Rolling release built by GitHub Actions.
To use this version, please install the "Rolling Release Assistant" plugin and enable "Enable Rolling Release" within the app.

0 comments on commit 46a481d

Please sign in to comment.