From eaaf776524149e14880dabd4322d0c7765a17f3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20=C5=A0est=C3=A1k?= Date: Thu, 5 Oct 2023 20:16:24 +0200 Subject: [PATCH] WIP pages --- .github/workflows/{build.yml => build.yaml} | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) rename .github/workflows/{build.yml => build.yaml} (75%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yaml similarity index 75% rename from .github/workflows/build.yml rename to .github/workflows/build.yaml index d007d6d..e26131d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yaml @@ -4,9 +4,11 @@ on: branches: - feature/github-build - master + - devel pull_request: branches: - master + - devel schedule: - cron: "5 4 2 * *" jobs: @@ -26,6 +28,17 @@ jobs: with: name: site path: pack.zip + - name: Repack as tar.gz + run: mkdir pack && + cd pack && + unzip ../pack.zip && + mv statistiky/years.json{.new,} && + tar cvf ../pack.tar . + - name: Upload Github Pages artifact + uses: actions/upload-artifact@v3 + with: + name: github-pages + path: pack.tar test-bleeding-edge-java-and-npm: runs-on: ubuntu-latest @@ -68,3 +81,15 @@ jobs: - name: Compare artifacts run: diff --exclude="*.gz" -r build/unpacked verification/unpacked + + + deploy-to-github-pages: + needs: [build] + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + steps: + - name: Deploy to Github Pages + id: deployment + uses: actions/deploy-pages@v2