feat: add pg_get_serial_sequence function #180
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - name: Setup Hugo | |
| uses: peaceiris/actions-hugo@v3 | |
| with: | |
| hugo-version: '0.131.0' | |
| - name: Build | |
| run: hugo --minify | |
| - name: copy files via ssh | |
| run: | | |
| set -x | |
| mkdir -p ~/.ssh | |
| chmod 700 ~/.ssh | |
| touch ~/.ssh/id_rsa | |
| touch ~/.ssh/known_hosts | |
| chmod 600 ~/.ssh/id_rsa | |
| chmod 644 ~/.ssh/known_hosts | |
| echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa | |
| ssh-keyscan ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts | |
| ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} mkdir -p ${{ secrets.SSH_DIR }} | |
| rsync -avz --del ./public/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.SSH_DIR }} |