From 6a851a3a7549644c6dcea64d882d0374af2c52d7 Mon Sep 17 00:00:00 2001 From: Jordan Robinson <37647414+linuxgoose@users.noreply.github.com> Date: Thu, 27 Mar 2025 23:21:45 +0000 Subject: [PATCH] Create publish.yml --- .github/workflows/publish.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000000000000000000000000000000000000..14c080d5af858e3a602e766cc6cb142358dbd623 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,28 @@ +name: Publish + +on: + release: + types: [published] + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: 'main' + - name: Set up Python + uses: actions/setup-python@v5 + - name: Install Flit + run: pip install flit + - name: Install Dependencies + run: flit install --symlink + - name: Publish + env: + # FLIT_USERNAME: ${{ secrets.FLIT_USERNAME }} + # FLIT_PASSWORD: ${{ secrets.FLIT_PASSWORD }} + FLIT_USERNAME: __token__ + FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }} + run: flit publish