From c2eba4c2b1f53f1ff803a9f754bfe1e839ae64fa Mon Sep 17 00:00:00 2001 From: MicrocontrollersDev Date: Sat, 7 Oct 2023 17:36:53 -0500 Subject: [PATCH 1/4] switch to github source --- .github/workflows/lint.yml | 33 +++++++++++++++++++++++++++++++ .github/workflows/release.yml | 37 +++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..3cb1f121 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,33 @@ +name: Lint + +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' + +jobs: + run-linters: + name: Run linters + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + + - uses: pnpm/action-setup@v2 + with: + version: latest + + - name: Install Node.js dependencies + run: pnpm install + + - name: Run linters + run: pnpm run lint \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..e401aca5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: Release + +on: + push: + tags: + - "v*" + +jobs: + release: + name: Release + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Check out Git repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + + - uses: pnpm/action-setup@v2 + with: + version: latest + + - name: Install Node.js dependencies + run: pnpm install + + - name: Build TypeScript and bundle into asar + run: pnpm run bundle + + - uses: ncipollo/release-action@v1 + with: + artifacts: "bundle/*" + makeLatest: true \ No newline at end of file From ae29232abb7b7f77a55c8ae57ffc976f7fe2cb5f Mon Sep 17 00:00:00 2001 From: MicrocontrollersDev Date: Sat, 7 Oct 2023 17:38:19 -0500 Subject: [PATCH 2/4] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e7f101d6..9766ecda 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ To install for Replugged: Click here: -[![Install in Replugged](https://img.shields.io/badge/-Install%20in%20Replugged-blue?style=for-the-badge&logo=none)](https://replugged.dev/install?identifier=dev.userpfp.userpfp) +[![Install in Replugged](https://img.shields.io/badge/-Install%20in%20Replugged-blue?style=for-the-badge&logo=none)](https://replugged.dev/install?identifier=UserPFP/USERPFP&source=github) OR From a82a2b4026cbb14d2e21e41900e0e029ad6c52f4 Mon Sep 17 00:00:00 2001 From: MicrocontrollersDev Date: Sat, 7 Oct 2023 17:43:50 -0500 Subject: [PATCH 3/4] fix capitalization of repo --- README.md | 2 +- manifest.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9766ecda..38e7dacf 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ To install for Replugged: Click here: -[![Install in Replugged](https://img.shields.io/badge/-Install%20in%20Replugged-blue?style=for-the-badge&logo=none)](https://replugged.dev/install?identifier=UserPFP/USERPFP&source=github) +[![Install in Replugged](https://img.shields.io/badge/-Install%20in%20Replugged-blue?style=for-the-badge&logo=none)](https://replugged.dev/install?identifier=UserPFP/UserPFP&source=github) OR diff --git a/manifest.json b/manifest.json index 135c6255..479cd22b 100644 --- a/manifest.json +++ b/manifest.json @@ -16,11 +16,11 @@ "version": "1.0.1", "updater": { "type": "github", - "id": "UserPFP/USERPFP" + "id": "UserPFP/UserPFP" }, "license": "GPL 3.0", "type": "replugged-theme", "main": "src/main.css", - "source": "https://github.com/UserPFP/USERPFP", + "source": "https://github.com/UserPFP/UserPFP", "image": ["https://camo.githubusercontent.com/68decd2d5b4c237a97940c9012474ce82e6ed3eee65b3950032475ce82192c03/68747470733a2f2f692e6962622e636f2f6d62514a534b6d2f696d6167652d323032332d30372d31362d3131323131353837322e706e67"] } From d45e139fb216d5c73e15409576753ea456db0b5e Mon Sep 17 00:00:00 2001 From: MicrocontrollersDev Date: Sat, 7 Oct 2023 17:48:23 -0500 Subject: [PATCH 4/4] we dont actually need lint --- .github/workflows/lint.yml | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 3cb1f121..00000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Lint - -on: - push: - branches: - - '*' - pull_request: - branches: - - '*' - -jobs: - run-linters: - name: Run linters - runs-on: ubuntu-latest - - steps: - - name: Check out Git repository - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: 18 - - - uses: pnpm/action-setup@v2 - with: - version: latest - - - name: Install Node.js dependencies - run: pnpm install - - - name: Run linters - run: pnpm run lint \ No newline at end of file