Skip to content

Commit

Permalink
Create release upload structure ⤴
Browse files Browse the repository at this point in the history
  • Loading branch information
Kezzsim committed Nov 29, 2023
1 parent 109546c commit 5183c76
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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 }}


0 comments on commit 5183c76

Please sign in to comment.