Skip to content

Modify generator script to run outside of cont. #18

Modify generator script to run outside of cont.

Modify generator script to run outside of cont. #18

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 }}
body: |
${{ github.ref }} : ${{ github.event.head_commit.message }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}