From 5183c7699dda91bf9f496d88e7b07adab8634e08 Mon Sep 17 00:00:00 2001 From: Kari Barry Date: Wed, 29 Nov 2023 14:48:51 -0500 Subject: [PATCH] =?UTF-8?q?Create=20release=20upload=20structure=20?= =?UTF-8?q?=E2=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish-image.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index 2e463ed..9c033f6 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -1,13 +1,11 @@ -name: Publish Postgres Image +name: Publish Database Images on: push: branches: - main - -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} + tags: + - "v*.*.*" jobs: build: @@ -37,4 +35,17 @@ jobs: - name: Stop containers run: docker-compose down + - name: Publish .sql files to github release with softprops/action-gh-release action + uses: softprops/action-gh-release@v1 + with: + files: | + tiled_test_db_pg.sql + tag_name: ${{ github.ref }} + body: | + ${{ github.ref }} : ${{ github.event.head_commit.message }} + draft: false + prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +