From 612aa656198820855882d0bac0f15b24fbb78a3f Mon Sep 17 00:00:00 2001 From: Davilarek Date: Mon, 16 Sep 2024 21:10:34 +0200 Subject: [PATCH] Use previous dist during build --- .github/workflows/build.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 31059ca1..3b425bdd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,18 +20,22 @@ jobs: - uses: pnpm/action-setup@v4 with: version: 9 - - name: Install dependencies and build - run: | - pnpm install - pnpm dist - name: Clone BrowserFS-builds repository uses: actions/checkout@v4 with: path: ./BrowserFS-builds token: ${{ secrets.PAT }} repository: LosersUnited/BrowserFS-builds - - name: Move dist + - name: Move dist from builds + run: | + mv ./BrowserFS-builds/dist ./dist + - name: Install dependencies and build + run: | + pnpm install + pnpm dist + - name: Move dist to builds run: | + rm -rf ./BrowserFS-builds/dist mv ./dist ./BrowserFS-builds/dist # - uses: EndBug/add-and-commit@v9 # with: