2222 outputs :
2323 should_deploy : ${{ steps.check.outputs.should_deploy }}
2424 has_submodule_changes : ${{ steps.check.outputs.has_submodule_changes }}
25+
2526 steps :
2627 - name : Checkout repository
2728 uses : actions/checkout@v4
3435 run : |
3536 echo "should_deploy=false" >> $GITHUB_OUTPUT
3637 echo "has_submodule_changes=false" >> $GITHUB_OUTPUT
37-
3838 git submodule update --init --recursive --remote
3939
4040 if ! git diff --quiet; then
@@ -51,14 +51,13 @@ jobs:
5151 git config user.email "github-actions[bot]@users.noreply.github.com"
5252 git add -A
5353 git commit -m "Update registry submodule"
54-
55- # Push using the default GITHUB_TOKEN for this repo
5654 git push https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
5755
5856 build :
5957 needs : check-changes
6058 if : needs.check-changes.outputs.should_deploy == 'true'
6159 runs-on : ubuntu-latest
60+
6261 steps :
6362 - name : Checkout repository
6463 uses : actions/checkout@v4
@@ -71,20 +70,18 @@ jobs:
7170 with :
7271 package-manager : bun@latest
7372 env :
74- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
7573 PUBLIC_SITE_NAME : Zig Index
7674 PUBLIC_SITE_URL : https://zig-index.github.io
7775 PUBLIC_REPO_URL : https://github.com/Zig-Index/zig-index.github.io
7876
7977 - name : Upload Artifact for Pages
8078 uses : actions/upload-pages-artifact@v3
8179 with :
82- path : ./dist
83- name : github-pages
80+ path : ./dist
8481
8582 deploy :
86- runs-on : ubuntu-latest
8783 needs : build
84+ runs-on : ubuntu-latest
8885 environment :
8986 name : github-pages
9087 steps :
0 commit comments