Skip to content

Merge pull request #1669 from santichausis/fix/move-changelog-column-… #83

Merge pull request #1669 from santichausis/fix/move-changelog-column-…

Merge pull request #1669 from santichausis/fix/move-changelog-column-… #83

Workflow file for this run

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