Skip to content

Commit

Permalink
push the right commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Jul 22, 2023
1 parent 71bcc32 commit 3b6e919
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/official-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,24 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: |
- id: get_gitsha
name: Make a commit for the official site
run: |
cp -r examples/official-site /tmp/
rm -rf *
cp -r /tmp/official-site/* .
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git add .
git commit -am "site update $(date)"
ls -lah *
echo "gitsha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
# - name: Push to dokku
# uses: dokku/github-action@master
# with:
# git_remote_url: 'dokku@${{ secrets.DEPLOY_IP }}:sqlpage'
# ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
# ssh_host_key: ${{ secrets.SSH_HOST_KEY }}
# git_push_flags: '--force'
# branch: 'main'
- name: Push to dokku
uses: dokku/github-action@master
with:
git_remote_url: 'dokku@${{ secrets.DEPLOY_IP }}:sqlpage'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
ssh_host_key: ${{ secrets.SSH_HOST_KEY }}
git_push_flags: '--force'
branch: 'main'
ci_commit: ${{ steps.get_gitsha.outputs.gitsha }}

0 comments on commit 3b6e919

Please sign in to comment.