Skip to content

Commit 51b5dc2

Browse files
authored
Merge pull request #9 from github/copilot/add-sha-verification
Harden GitHub Pages deployment workflow
2 parents 8fb5009 + 0f435c6 commit 51b5dc2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ jobs:
2121
name: github-pages
2222
url: ${{ steps.deployment.outputs.page_url }}
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2525

2626
- name: Prepare deployment
2727
run: |
2828
mkdir -p ./_site
2929
cp website/index.html website/archive.html website/styles.css website/light-theme.css website/theme-toggle.js website/github-cookie-consent.js ./_site/
30-
cp -r website/es website/pt_BR ./_site/ 2>/dev/null || true
30+
cp -r website/es website/pt_BR ./_site/
3131
touch ./_site/.nojekyll
3232
33-
- uses: actions/configure-pages@v4
33+
- uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4.0.0
3434

35-
- uses: actions/upload-pages-artifact@v3
35+
- uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
3636
with:
3737
path: _site
3838

3939
- name: Deploy to GitHub Pages
4040
id: deployment
41-
uses: actions/deploy-pages@v4
41+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

0 commit comments

Comments
 (0)