File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *.*.*'
7+
8+ jobs :
9+ release :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v4
14+ with :
15+ submodules : recursive
16+ - name : Build
17+ run : |
18+ docker compose -f docker-compose.yml -f docker-compose-dev.yml up -d
19+ make docker-migrate
20+ make docker-build-db
21+ - name : Dump DB
22+ run : docker compose exec -T -u postgres db sh -c "cd /tmp && pg_dump -h localhost -Fc -U ash pokeapi | gzip > pokeapi.dump.zip"
23+ - name : Copy dump
24+ run : |
25+ docker compose cp db:/tmp/pokeapi.dump.zip ./
26+ ls -larth
27+ - name : Release
28+ uses : softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda
29+ if : startsWith(github.ref, 'refs/tags/')
30+ with :
31+ draft : true
32+ fail_on_unmatched_files : true
33+ files : pokeapi.dump.zip
34+ generate_release_notes : true
You can’t perform that action at this time.
0 commit comments