First commit
This commit is contained in:
1 parent
a77e0fb890
commit
6e7c2a5de6
7 files changed
+367
No files matched your search
@@ -0,0 +1,29 @@
|
||||
name: Build and Publish Package via local runner
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: local
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Prepare environment
|
||||
run: |
|
||||
virtualenv -p python3 .venv
|
||||
source .venv/bin/activate
|
||||
pip install build twine
|
||||
pip install -e ".[test]"
|
||||
- name: Run Tests
|
||||
run: |
|
||||
.venv/bin/python -m pytest
|
||||
- name: Build package
|
||||
run: .venv/bin/python -m build
|
||||
- name: Publish package
|
||||
run: |
|
||||
.venv/bin/python -m twine upload \
|
||||
--repository-url https://git.gansejunge.com/api/packages/notifier/pypi \
|
||||
-u ${{ secrets.PACKAGE_UPLOAD_USERNAME }} \
|
||||
-p ${{ secrets.PACKAGE_UPLOAD_TOKEN }} \
|
||||
dist/*
|
||||
@@ -0,0 +1,29 @@
|
||||
name: Build and Publish Package
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Prepare environment
|
||||
run: |
|
||||
virtualenv -p python3 .venv
|
||||
source .venv/bin/activate
|
||||
pip install build twine
|
||||
pip install -e ".[test]"
|
||||
- name: Run Tests
|
||||
run: |
|
||||
.venv/bin/python -m pytest
|
||||
- name: Build package
|
||||
run: .venv/bin/python -m build
|
||||
- name: Publish package
|
||||
run: |
|
||||
.venv/bin/python -m twine upload \
|
||||
--repository-url https://git.gansejunge.com/api/packages/notifier/pypi \
|
||||
-u ${{ secrets.PACKAGE_UPLOAD_USERNAME }} \
|
||||
-p ${{ secrets.PACKAGE_UPLOAD_TOKEN }} \
|
||||
dist/*
|
||||
Reference in new issue
Block a user