TDR Publish Slick Classes #52
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: TDR Publish Slick Classes | |
| on: | |
| workflow_dispatch: | |
| env: | |
| BRANCH_NAME: version-bump-${{ github.run_id }}${{ github.run_attempt }} | |
| jobs: | |
| deploy-db-changes: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:17 | |
| env: | |
| POSTGRES_PASSWORD: password | |
| POSTGRES_USER: tdr | |
| POSTGRES_DB: consignmentapi | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-java@v3 | |
| with: | |
| java-version: 17 | |
| distribution: 'temurin' | |
| - name: Import GPG key | |
| id: import_gpg | |
| uses: crazy-max/ghaction-import-gpg@v4 | |
| with: | |
| git_user_signingkey: true | |
| git_commit_gpgsign: true | |
| gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
| passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
| - name: Publish | |
| id: publish | |
| run: | | |
| pg_dump --version | |
| sudo apt update | |
| sudo apt install postgresql-client | |
| pg_dump --version |