Skip to content

Update README.md

Update README.md #30

Workflow file for this run

name: Release
on:
push:
branches:
- master
tags:
- '*.*.*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Start pokeapi (docker)
run: |
docker compose -f docker-compose.yml -f docker-compose-dev.yml up -d
make docker-migrate
make docker-build-db
- name: Dump PG db
run: docker compose exec -T -u postgres db sh -c "cd /tmp && pg_dump -h localhost -Fc -U ash -N 'hdb_*' pokeapi > pokeapi.pgdump"
- name: Copy PG dump
run: |
docker compose cp db:/tmp/pokeapi.pgdump ./
ls -larth
- name: Setup uv
uses: ./.github/actions/setup-uv
- name: Start pokeapi
run: |
rm -rf .venv
make install-base
make setup
make build-db
nohup make serve &
sleep 3
- name: Release tag
uses: softprops/action-gh-release@v3.0.1
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.1
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