diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d6f5fd0..1f006bb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -56,6 +56,7 @@ jobs: - name: Commit changes to gh-pages branch run: | + echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token git config --global user.name "GitHub Actions" git config --global user.email "action@github.com" git add -N . diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index be8b529..deb9442 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -35,10 +35,12 @@ jobs: - name: Checkout gh-pages uses: actions/checkout@v4 with: + repository: Rust-Developers-JP/rustrefjp ref: gh-pages - name: Commit changes to gh-pages branch run: | + echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token git config --global user.name "GitHub Actions" git config --global user.email "action@github.com" mkdir -p ./preview/${{ env.PAGE_DIR }} @@ -69,6 +71,7 @@ jobs: - name: Checkout gh-pages uses: actions/checkout@v4 with: + repository: Rust-Developers-JP/rustrefjp ref: gh-pages - name: Remove preview directory