Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Simon-U/dash_drag_grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-U committed Apr 25, 2024
2 parents f474703 + 955c07e commit 640d28a
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 2 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3

- name: Versioning (${{ github.ref_name }})
run: |
find . -type f -exec sed -i "s/__VERSION__/${{ github.ref_name }}/g" {} +
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
npm install
- name: Build package
run: |
npm run build
python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "DashDragGrid"
uuid = "1b08a953-4be3-4667-9a23-4015cbeafbd6"
authors = ["Simon Unterbusch <[email protected]>"]
version = "0.9.4"
version = "__VERSION__"

[deps]
Dash = "1b08a953-4be3-4667-9a23-3db579824955"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dash_drag_grid",
"version": "0.9.4",
"version": "__VERSION__",
"description": "Draggable Toolbox grid based on react grid",
"repository": {
"type": "git",
Expand Down

0 comments on commit 640d28a

Please sign in to comment.