77 runs-on : ubuntu-latest
88 steps :
99 - name : Checkout code
10- uses : actions/checkout@v4
10+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1111 with :
12- token : ${{ secrets.DEPLOYMENT_PERSONAL_ACCESS_TOKEN }}
12+ token : ${{ secrets.GITHUB_TOKEN }}
1313 submodules : true
1414 # git-revision-date-localized-plugin and mkdocs-rss-plugin need full git history depth
1515 fetch-depth : 0
1616
1717 - name : Set up Python
18- uses : actions/setup-python@v5
18+ uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
1919 with :
2020 python-version : " 3.x"
2121 cache : " pip"
2929 mkdocs -v build
3030
3131 - name : Upload meta descriptions artifact
32- uses : actions/upload-artifact@v4
32+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
3333 with :
3434 name : meta-descriptions
3535 path : ./site/meta-descriptions.csv
@@ -42,13 +42,13 @@ jobs:
4242 - name : Obtain Netlify alias from branch name
4343 id : branch
4444 if : github.ref != 'refs/heads/master'
45- uses : common-fate/branch-name@v1.1.2
45+ uses : common-fate/branch-name@baca702844ae4e7dfd7bfdfa6a9bd4235bc9f08e # v1.1.2
4646 with :
4747 max-length : 35
4848
4949 - name : Deploy docs (branch preview)
5050 if : github.ref != 'refs/heads/master'
51- uses : nwtgck/actions-netlify@v3.0
51+ uses : nwtgck/actions-netlify@4cbaf4c08f1a7bfa537d6113472ef4424e4eb654 # v3.0
5252 with :
5353 publish-dir : ./site
5454 production-branch : master
7979 echo -e "User-agent: *\nSitemap: https://${{ env.CUSTOM_DOMAIN }}/sitemap.xml" > "./site/robots.txt"
8080
8181 - name : Deploy docs
82- uses : peaceiris/actions-gh-pages@v4
82+ uses : peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
8383 if : github.ref == 'refs/heads/master'
8484 with :
8585 personal_token : ${{ secrets.DEPLOYMENT_PERSONAL_ACCESS_TOKEN }}
0 commit comments