Skip to content

More consise, better looking ✴️ #1

More consise, better looking ✴️

More consise, better looking ✴️ #1

Workflow file for this run

name: Publish Database Images
on:
push:
tags:
- "*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install Tiled.
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: 'pip'
- run: pip install -r requirements.txt
- name: Start PostgreSQL service in container.
shell: bash -l {0}
run: |
set -e
docker run -d --rm --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=secret -d docker.io/postgres
docker ps
- name: Run Tiled commands.
shell: bash -l {0}
run: source scripts/run_tiled.sh
env:
# Specify Database Connection
TILED_TEST_POSTGRESQL_URI: postgresql+asyncpg://postgres:secret@localhost:5432
- name: Dump sql data into binary format
run: docker exec -i postgres /bin/bash -c "PGPASSWORD=secret pg_dump --username postgres postgres" > tiled_test_db_pg.sql
- name: Publish .sql files to github release with action
uses: softprops/action-gh-release@v1
with:
files: |
tiled_test_db_pg.sql
tag_name: ${{ github.ref_name }}
body: |
${{ github.ref_name }} : ${{ github.event.head_commit.message }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}