Skip to content

Merge pull request #77 from causy-dev/track-orientation-conflicts #79

Merge pull request #77 from causy-dev/track-orientation-conflicts

Merge pull request #77 from causy-dev/track-orientation-conflicts #79

Workflow file for this run

name: Releases
permissions:
contents: write
issues: write
packages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
on:
push:
tags:
- '*'
jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: [ "3.12" ]
platform: [ ubuntu-latest ]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip "poetry<2.0.0" flake8
poetry self add poetry-version-plugin
poetry install
- name: Download latest frontend release
uses: robinraju/[email protected]
with:
repository: "causy-dev/causy-ui"
fileName: "causy-ui-*.zip"
out-file-path: "causy/static/"
latest: true
- name: unpack and move frontend release
run: |
unzip causy/static/causy-ui-*.zip -d causy/static/
mv causy/static/dist/* causy/static/
rm -r causy/static/dist
rm -r causy/static/causy-ui-*.zip
- name: Build
run: |
poetry build
- uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
- uses: actions/upload-artifact@master
with:
name: Build
path: dist/
pypi-publish:
needs: build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/causy
permissions:
id-token: write
steps:
- uses: actions/download-artifact@master
with:
name: Build
path: dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/