Skip to content

Commit

Permalink
ci: add relase workfolw
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankParticle committed Mar 24, 2024
1 parent ddd929a commit 0c9b2ac
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 4 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build and Release 🏗

on:
push:
tags:
- "v*"

jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout Code 🛎
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup pnpm 📦
uses: pnpm/action-setup@v2
with:
version: "8"

- name: Setup Node.js 🟩
uses: actions/setup-node@v4
with:
cache: "pnpm"
node-version: "20"

- name: Add Gnome Extension Tools 🧩
run: |
apt update
apt install -y gnome-shell-extensions
- name: Install Dependencies 📥
run: pnpm install

- name: Build 🏗
run: pnpm build

- name: Release 🚀
uses: softprops/action-gh-release@v2
with:
files: dist/*.shell-extension.zip
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref }}
body: "Release ${{ github.ref }}"
draft: false
prerelease: false
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Code Quality
name: Code Quality 🧹

on:
push:
branches:
- master
pull_request:


jobs:
test:
Expand All @@ -21,13 +20,12 @@ jobs:
uses: pnpm/action-setup@v2
with:
version: "8"

- name: Setup Node.js 🟩
uses: actions/setup-node@v4
with:
cache: "pnpm"
node-version: "20"

- name: Install Dependencies 📥
run: pnpm install

Expand Down

0 comments on commit 0c9b2ac

Please sign in to comment.