From 33d8de966d44625424fec6de3460fda20bcb939a Mon Sep 17 00:00:00 2001 From: bradmkjr Date: Fri, 1 Nov 2024 19:41:03 -0400 Subject: [PATCH] SSI attempt --- .github/workflows/deploy-static-site.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-static-site.yml b/.github/workflows/deploy-static-site.yml index 4d24f3c..da54f8e 100644 --- a/.github/workflows/deploy-static-site.yml +++ b/.github/workflows/deploy-static-site.yml @@ -33,11 +33,31 @@ jobs: uses: actions/checkout@v4 - name: Setup Pages uses: actions/configure-pages@v5 + - name: Create dist folder + run: mkdir dist && cp -R src dist/. + - name: Update DATE_LOCAL + uses: richardrigutins/replace-in-files@v2 + with: + files: './dist/index.html' + search-text: '' + replacement-text: '${{ github.run_number }}' + - name: Update LAST_MODIFIED + uses: richardrigutins/replace-in-files@v2 + with: + files: './dist/index.html' + search-text: '' + replacement-text: '${{ github.sha }}' + - name: Update SERVER_ADMIN + uses: richardrigutins/replace-in-files@v2 + with: + files: './dist/index.html' + search-text: '' + replacement-text: '${{ github.actor_id }}' - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: # Upload entire repository - path: './src' + path: './dist' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4