From 298045bcd0ee282e5238d291e01b3eb8a60ea045 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 10 Dec 2024 19:52:35 +0100 Subject: [PATCH 1/6] gug --- .forgejo/workflows/build.yaml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index bff9aca..4318ca3 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -24,4 +24,24 @@ jobs: uses: actions/upload-artifact@v3 with: name: production-files - path: ./dist \ No newline at end of file + path: ./dist + + deploy: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: Download artifact + uses: actions/download-artifact@v3 + with: + name: production-files + path: ./dist + + - name: Upload ftp + uses: git.lgbt/mirror/ftp-action@releases/v2 + with: + host: ${{ secrets.FTP_SERVER }} + user: ${{ secrets.FTP_USER }} + password: ${{ secrets.FTP_PASSWORD }} + localDir: "dist" + remoteDir: "mkgg" + options: "--delete --asci" \ No newline at end of file From 81009a243a6d898b3b619c4ce5e773fab2bc466f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 10 Dec 2024 19:53:30 +0100 Subject: [PATCH 2/6] Update .forgejo/workflows/build.yaml --- .forgejo/workflows/build.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 4318ca3..ddc2c8e 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -28,6 +28,7 @@ jobs: deploy: name: Deploy + needs: build runs-on: ubuntu-latest steps: - name: Download artifact From 225f2ef088e0654c2ef8cf7bbcec3515d39ef329 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 10 Dec 2024 19:55:05 +0100 Subject: [PATCH 3/6] Update .forgejo/workflows/build.yaml --- .forgejo/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index ddc2c8e..1c285b0 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -38,7 +38,7 @@ jobs: path: ./dist - name: Upload ftp - uses: git.lgbt/mirror/ftp-action@releases/v2 + uses: https://git.lgbt/mirror/ftp-action@releases/v2 with: host: ${{ secrets.FTP_SERVER }} user: ${{ secrets.FTP_USER }} From 7e9160bbcd0083be75e8c803e2806981a28a112b Mon Sep 17 00:00:00 2001 From: root Date: Tue, 10 Dec 2024 19:57:14 +0100 Subject: [PATCH 4/6] Update .forgejo/workflows/build.yaml --- .forgejo/workflows/build.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 1c285b0..924925b 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -17,6 +17,14 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 + - name: Cache npm dependencies + uses: actions/cache@v4 + with: + path: '~/.npm' + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Build project run: npm install && npm run build From 3d02fdfa742aa849acca17aca4416cd415f85887 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 10 Dec 2024 20:01:34 +0100 Subject: [PATCH 5/6] Update .forgejo/workflows/build.yaml --- .forgejo/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 924925b..8668fb7 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -18,7 +18,7 @@ jobs: uses: actions/setup-node@v3 - name: Cache npm dependencies - uses: actions/cache@v4 + uses: actions/cache@v2 with: path: '~/.npm' key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} From 9343a28ca0808cd8fe1b5f0cf9e604aeeed77093 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 10 Dec 2024 20:18:58 +0100 Subject: [PATCH 6/6] Update .forgejo/workflows/build.yaml --- .forgejo/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 8668fb7..422e61a 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -53,4 +53,4 @@ jobs: password: ${{ secrets.FTP_PASSWORD }} localDir: "dist" remoteDir: "mkgg" - options: "--delete --asci" \ No newline at end of file + options: "--delete" \ No newline at end of file