Skip to content

Commit

Permalink
Merge pull request #43 from ginzarb/use-official-github-actions
Browse files Browse the repository at this point in the history
公式のGitHub Actionsを利用する
  • Loading branch information
willnet authored Jun 25, 2024
2 parents d7a276f + c4dee99 commit f28563a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,21 @@ jobs:

- name: create token
id: create_token
uses: tibdex/github-app-token@v2
uses: actions/create-github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}

- name: Deploy
if: github.ref == 'refs/heads/source'
run: |
cd build
git add -A
git commit -m 'Reflect changed sources'
git push -f https://${{ steps.create_token.outputs.token }}@github.com/ginzarb/ginzarb.github.io.git master
git push -f https://${GITHUB_TOKEN}@github.com/ginzarb/ginzarb.github.io.git master
env:
GIT_COMMITTER_NAME: willnet
GIT_COMMITTER_EMAIL: [email protected]
GIT_AUTHOR_NAME: willnet
GIT_AUTHOR_EMAIL: [email protected]
GIT_AUTHOR_EMAIL: [email protected]
GITHUB_TOKEN: ${{ steps.create_token.outputs.token }}

0 comments on commit f28563a

Please sign in to comment.