Skip to content

Commit b400fdc

Browse files
committed
feat: enable releasing
1 parent 02f5a92 commit b400fdc

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Release
22

33
on:
44
push:
5-
# tags:
6-
# - '*.*.*'
5+
tags:
6+
- '*.*.*'
77

88
jobs:
99
release:
@@ -13,27 +13,22 @@ jobs:
1313
uses: actions/checkout@v4
1414
with:
1515
submodules: recursive
16-
# - name: Set up QEMU
17-
# uses: docker/setup-qemu-action@v3
18-
# - name: Set up Docker Buildx
19-
# id: buildx
20-
# uses: docker/setup-buildx-action@v3
2116
- name: Build
2217
run: |
2318
docker compose -f docker-compose.yml -f docker-compose-dev.yml up -d
2419
make docker-migrate
2520
make docker-build-db
2621
- name: Dump DB
27-
run: docker compose exec -T -u postgres db sh -c "cd /tmp && pg_dump -h localhost -Fc -U ash pokeapi | gzip > pokeapi.dump.zip && ls -larth"
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"
2823
- name: Copy dump
2924
run: |
3025
docker compose cp db:/tmp/pokeapi.dump.zip ./
3126
ls -larth
32-
# - name: Release
33-
# uses: softprops/action-gh-release@v2
34-
# if: startsWith(github.ref, 'refs/tags/')
35-
# with:
36-
# draft: true
37-
# fail_on_unmatched_files: true
38-
# files: pokeapi.dump.zip
39-
# generate_release_notes: true
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

0 commit comments

Comments
 (0)