Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Saltssaumure committed Jun 19, 2024
1 parent 49301a0 commit e57ba4c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 19 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/bd.yml → .github/workflows/css.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: "Build and deploy CSS for BetterDiscord"
name: "Build and deploy CSS"

on:
push:
branches:
- main
- master

jobs:
build:
Expand All @@ -16,23 +15,21 @@ jobs:
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 21
uses: actions/setup-node@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: latest

- name: Install dependencies
run: pnpm install

- name: Build CSS
run: pnpm run build:bd
run: pnpm run build:css

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: deploy
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ jobs:
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 21
uses: actions/setup-node@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: latest

Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/rp.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release for Replugged
name: Bundle and release

on:
push:
Expand All @@ -17,12 +17,10 @@ jobs:
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 21
uses: actions/setup-node@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: latest

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"dev:rp": "replugged build theme --watch",
"dev:vc": "bd-scss dev:vc",
"dev:vt": "bd-scss dev:vt",
"build:bd": "bd-scss build",
"build:rp": "replugged bundle theme",
"build:css": "bd-scss build",
"build:asar": "replugged bundle theme",
"lint": "prettier ./scss --check",
"lint:fix": "prettier ./scss --write --log-level warn",
"release": "replugged release"
Expand Down

0 comments on commit e57ba4c

Please sign in to comment.