fix known_hosts cli-argument quotes (fix #69) #35
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Release on PyPI | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
publish: | |
name: Upload release to PyPI | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.ref }} | |
- name: Install python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install -r requirements_build.txt >/dev/null | |
pip install -r requirements.txt >/dev/null | |
# NOTE: timeout for running the app includes db migrations | |
- name: Testing to build Ansible-WebUI with PIP | |
run: | | |
cd /tmp | |
echo 'CREATING TMP VENV' | |
tmp_venv="/tmp/aw-venv/$(date +%s)" | |
python3 -m virtualenv "$tmp_venv" >/dev/null | |
source "${tmp_venv}/bin/activate" | |
echo 'INSTALLING MODULE' | |
python3 -m pip install -e "$GITHUB_WORKSPACE" >/dev/null | |
set +e | |
echo 'RUNNING APP' | |
export AW_DB="/tmp/$(date +%s).aw.db" | |
timeout 20 python3 -m ansibleguy-webui | |
ec="$?" | |
echo 'CLEANUP' | |
deactivate | |
rm -rf "$tmp_venv" | |
if [[ "$ec" != "124" ]] | |
then | |
exit 1 | |
fi | |
- name: Extract tag name | |
id: version | |
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3 | cut -c 1-) | |
- name: Building | |
run: | | |
git reset --hard | |
git ls-files . --exclude-standard --others | grep 'migrations' | xargs --no-run-if-empty rm | |
echo "${{ steps.version.outputs.TAG_NAME }}" > VERSION | |
python3 -m build | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |