Skip to content

Commit

Permalink
Merge pull request #49 from ginzarb/fix-deploy-third
Browse files Browse the repository at this point in the history
Push a commit using the built-in token
  • Loading branch information
y-yagi authored Jun 25, 2024
2 parents 282a93a + c19f505 commit 6c5e9a7
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,16 @@ jobs:
- name: Install dependencies
run: bundle install

- name: Clone target repository
run: |
git clone --quiet https://github.com/ginzarb/ginzarb.github.io.git build
pushd build
git checkout -b master
popd
- name: Build with Middleman
run: bundle exec middleman build

- name: Deploy
if: github.ref == 'refs/heads/source'
run: |
cd build
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout -b master
git add -A
git commit -m 'Reflect changed sources'
git push -f https://[email protected]/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]
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
git push

0 comments on commit 6c5e9a7

Please sign in to comment.