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 884636b commit 2cda82e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 23 deletions.
18 changes: 8 additions & 10 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 @@ -13,27 +12,26 @@ jobs:

steps:
- name: Checkout theme
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
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
publish_dir: "./"
publish_dir: "./"
enable_jekyll: true
10 changes: 4 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@ jobs:

steps:
- name: Checkout theme
uses: actions/checkout@v2
uses: actions/checkout@v4

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

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

- name: Install dependencies
run: pnpm install
Expand Down
10 changes: 4 additions & 6 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: Release

on:
push:
Expand All @@ -14,15 +14,13 @@ jobs:

steps:
- name: Checkout theme
uses: actions/checkout@v2
uses: actions/checkout@v4

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

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

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

0 comments on commit 2cda82e

Please sign in to comment.