Skip to content

Commit

Permalink
feat: enable releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
Naramsim committed Jan 22, 2025
1 parent 02f5a92 commit b400fdc
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Release

on:
push:
# tags:
# - '*.*.*'
tags:
- '*.*.*'

jobs:
release:
Expand All @@ -13,27 +13,22 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# - name: Set up Docker Buildx
# id: buildx
# uses: docker/setup-buildx-action@v3
- name: Build
run: |
docker compose -f docker-compose.yml -f docker-compose-dev.yml up -d
make docker-migrate
make docker-build-db
- name: Dump DB
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"
run: docker compose exec -T -u postgres db sh -c "cd /tmp && pg_dump -h localhost -Fc -U ash pokeapi | gzip > pokeapi.dump.zip"
- name: Copy dump
run: |
docker compose cp db:/tmp/pokeapi.dump.zip ./
ls -larth
# - name: Release
# uses: softprops/action-gh-release@v2
# if: startsWith(github.ref, 'refs/tags/')
# with:
# draft: true
# fail_on_unmatched_files: true
# files: pokeapi.dump.zip
# generate_release_notes: true
- name: Release
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
fail_on_unmatched_files: true
files: pokeapi.dump.zip
generate_release_notes: true

0 comments on commit b400fdc

Please sign in to comment.