diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 007434a..d8b2ec2 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -16,13 +16,25 @@ jobs: concurrency: group: ${{ github.workflow }}-${{ github.ref }} steps: + - name: Checkout source repository - uses: actions/checkout@v3 - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + - name: Checkout deployment repository + uses: actions/checkout@v3 with: - deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} - external_repository: mikiken/mikiken.net - publish_branch: main + repository: mikiken/mikiken.net path: compiler_log/ - cname: mikiken.net + token: ${{ secrets.ACTIONS_DEPLOY_KEY }} + + - name: Copy file + run: | + cp index.html mikiken.net/compiler_log/index.html + + - name: Push changes + run: | + cd mikiken.net + git config user.name mikiken + git config user.email mikiken.dev@gmail.com + git add compiler_log/index.html + git commit -m "Update `compiler_log/index.html via github-actions` " + git push origin main