Skip to content

Commit

Permalink
SSI attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
bradmkjr authored Nov 1, 2024
1 parent 4742b12 commit 33d8de9
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/deploy-static-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: '<!--#echo var="DATE_LOCAL" -->'
replacement-text: '${{ github.run_number }}'
- name: Update LAST_MODIFIED
uses: richardrigutins/replace-in-files@v2
with:
files: './dist/index.html'
search-text: '<!--#echo var="LAST_MODIFIED" -->'
replacement-text: '${{ github.sha }}'
- name: Update SERVER_ADMIN
uses: richardrigutins/replace-in-files@v2
with:
files: './dist/index.html'
search-text: '<!--#echo var="SERVER_ADMIN" -->'
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

0 comments on commit 33d8de9

Please sign in to comment.