From 57a8e91ac4d5cfe721dc498f4239fd0cb14b4cf9 Mon Sep 17 00:00:00 2001 From: FURK4NGG <105324908+FURK4NGG@users.noreply.github.com> Date: Wed, 5 Mar 2025 00:54:48 +0300 Subject: [PATCH] Add files via upload --- cache-build.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 cache-build.yml diff --git a/cache-build.yml b/cache-build.yml new file mode 100644 index 0000000..bcfeaf0 --- /dev/null +++ b/cache-build.yml @@ -0,0 +1,34 @@ +name: GitHub Pages Cache Build + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Cache Build Output + id: cache-build + uses: actions/cache@v4 + with: + path: ./ + key: ${{ runner.os }}-build-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-build- + + - name: Generate Versioned Files + run: | + echo "Generating version map..." + echo "{ \"index.html\": \"v2\", \"home_en.html\": \"v1\", \"home_tr.html\": \"v1\" }" > version.json + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./ \ No newline at end of file