This repository has been archived by the owner on May 20, 2024. It is now read-only.
Merge pull request #436 from IQTLabs/renovate/actions-upload-artifact… #385
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: | |
push: | |
branches: main | |
tags: 'v*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Build core package | |
id: build_core_package | |
run: | | |
sudo apt-get update && \ | |
sudo apt-get install -yq --no-install-recommends python3-pip python3-dev python3-setuptools && \ | |
pip3 install wheel build && \ | |
cd blue && python3 -m build --sdist --wheel | |
if: github.repository == 'iqtlabs/daedalus' && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | |
- name: Publish package | |
if: github.repository == 'iqtlabs/daedalus' && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
user: ${{ secrets.PYPI_USERNAME }} | |
password: ${{ secrets.PYPI_TOKEN }} | |
packages_dir: blue/dist |