Merge pull request #9 from grahamplace/graham/inngest-upgrade #59
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: Main | |
| on: | |
| push: | |
| branches: [main] | |
| # TODO: Vercel deployment from here as well, rather than using Vercel Github integration. That way if migrate fails, we don't deploy code. | |
| jobs: | |
| migrate: | |
| concurrency: migrate-production | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "npm" | |
| - name: Install dbmate | |
| run: sudo curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/download/v2.15.0/dbmate-linux-amd64 && sudo chmod +x /usr/local/bin/dbmate | |
| - name: Migrate | |
| run: dbmate -e DATABASE_URL up | |
| env: | |
| DATABASE_URL: ${{ secrets.DATABASE_URL }} |