Repository navigation
fix local_language_id of Pesabola (#1693) #95
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: Release | |
| on: | |
| push: | |
| paths: | |
| - "**.py" | |
| - "**.toml" | |
| - "**.lock" | |
| - "data/**" | |
| - Makefile | |
| - .github/actions/setup-uv/action.yml | |
| - .github/workflows/release.yml | |
| branches: | |
| - master | |
| tags: | |
| - '*.*.*' | |
| jobs: | |
| release: | |
| if: ${{ !github.event.repository.fork }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Start pokeapi (docker) | |
| run: | | |
| make docker-dev-up | |
| make docker-migrate | |
| make docker-build-db | |
| - name: Dump PG db | |
| run: make docker-dump-db | |
| - name: List folder | |
| run: ls -larth | |
| - name: Setup uv | |
| uses: ./.github/actions/setup-uv | |
| - name: Generate SQLite db | |
| run: | | |
| rm -rf .venv | |
| make install-base | |
| make setup | |
| make build-db | |
| sleep 3 | |
| - name: Release tag | |
| uses: softprops/action-gh-release@v3.0.2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| draft: true | |
| fail_on_unmatched_files: true | |
| files: | | |
| pokeapi.pgdump | |
| db.sqlite3 | |
| generate_release_notes: true | |
| - name: Release master branch | |
| uses: softprops/action-gh-release@v3.0.2 | |
| if: github.ref == 'refs/heads/master' | |
| with: | |
| body: | | |
| **Release Information:** | |
| * **Date:** ${{ github.event.head_commit.timestamp }} | |
| * **Commit:** [${{ github.sha }}](${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}) | |
| draft: false | |
| prerelease: true | |
| name: master-branch | |
| tag_name: master-branch | |
| fail_on_unmatched_files: true | |
| files: | | |
| pokeapi.pgdump | |
| db.sqlite3 | |
| generate_release_notes: false |