Repository navigation
71 lines (69 loc) · 1.9 KB
/
Copy pathrelease.yml
File metadata and controls
71 lines (69 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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-26.04-arm
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Pull cries submodule
run: git submodule update --init data/v2/cries
- 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