From f0ace70232e1a2b0d8fc18bd223c55ff84251091 Mon Sep 17 00:00:00 2001 From: Saltssaumure Date: Wed, 11 Oct 2023 11:21:04 +0100 Subject: [PATCH] Temp release workflow to grab replugged v4.7.0 from gh --- .github/workflows/rp.yml | 45 +++++++++++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/.github/workflows/rp.yml b/.github/workflows/rp.yml index 9908d5c..6e4de13 100644 --- a/.github/workflows/rp.yml +++ b/.github/workflows/rp.yml @@ -13,27 +13,48 @@ jobs: contents: write steps: - - name: Checkout Git repository - uses: "actions/checkout@v2" - - - name: Set up Node.js + - name: Setup node uses: actions/setup-node@v3 with: node-version: 18 - - name: Install PNPM + - name: Setup pnpm 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 rp + - name: Checkout theme + uses: actions/checkout@v2 + with: + path: theme - - uses: ncipollo/release-action@v1 + - name: Checkout Replugged + uses: actions/checkout@v2 + with: + repository: replugged-org/replugged + path: replugged + ref: v4.7.0 + + - name: Link Replugged into theme + run: | + cd theme + pnpm link ../replugged + + - name: Build and bundle Replugged + run: | + cd replugged + pnpm install + pnpm run bundle + + - name: Build and bundle theme into .asar + run: | + cd theme + pnpm install + pnpm run rp:all + + - name: Release theme .asar and .json + uses: ncipollo/release-action@v1 with: - artifacts: "bundle/*, *.theme.css" + artifacts: "theme/bundle/*" makeLatest: true generateReleaseNotes: true \ No newline at end of file