Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable automatic deployment for lobster tools to pypi #92

Merged
merged 31 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
93cd3c9
test automatic deployment to pypi
DiFerMa Oct 9, 2024
5c28533
clean up
DiFerMa Oct 9, 2024
c38c634
Set var lobster_root
DiFerMa Oct 9, 2024
0511646
Add version var
DiFerMa Oct 9, 2024
ac1d675
Set python path directly to makefile and pass it to python
DiFerMa Oct 9, 2024
445b8f9
pass wheel var to 2nd job
DiFerMa Oct 9, 2024
4ae7fbd
Update package.yml
DiFerMa Oct 9, 2024
0c5f068
reset test py
DiFerMa Oct 9, 2024
8f0eeec
use make packages target
DiFerMa Oct 9, 2024
4f543ac
add cpptest to make
DiFerMa Oct 9, 2024
5ee27d1
add debug session
DiFerMa Oct 9, 2024
cdbd722
CORRECT syntax
DiFerMa Oct 9, 2024
3434bd0
set patterns for files
DiFerMa Oct 9, 2024
b67c40f
remove apostrophes from yaml
DiFerMa Oct 9, 2024
6a673a8
set pattern for download
DiFerMa Oct 9, 2024
62b3fc7
Set merge-multiple to download all
DiFerMa Oct 9, 2024
922f61b
organize workspace with shell script
DiFerMa Oct 9, 2024
890c75e
upload with api key
DiFerMa Oct 9, 2024
745ff49
correct syntax
DiFerMa Oct 9, 2024
8170bb3
test v21
DiFerMa Oct 9, 2024
a3a6b83
clean up
DiFerMa Oct 9, 2024
891164b
clean up again
DiFerMa Oct 9, 2024
62e7e40
Update github actions version
DiFerMa Oct 10, 2024
5ecd8a7
set test pypi as target
DiFerMa Oct 10, 2024
7f838de
Force node js 20
DiFerMa Oct 10, 2024
cfe569d
test v5 of setup python revert node js flag
DiFerMa Oct 10, 2024
091733e
test publish with trusted github
DiFerMa Oct 10, 2024
4e2a217
clean up
DiFerMa Oct 10, 2024
effc8f8
Merge branch 'main' into main
christophkloeffel Oct 11, 2024
8536d3a
Update Makefile
christophkloeffel Oct 11, 2024
b95d66f
Update .github/workflows/package.yml
christophkloeffel Oct 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Lobster PyPI Packages

on:
release:
types: [published]

permissions:
contents: read

jobs:

package:
name: Build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel requests
- name: Build Packages
run: |
make packages
- name: Archive wheel files
uses: actions/upload-artifact@v4
with:
name: wheels
path: |
packages/*/dist/*.whl
packages/*/dist/*.gz
packages/*/meta_dist/*.whl
packages/*/meta_dist/*.gz

upload-test:
name: PyPI Upload
needs: package
runs-on: ubuntu-20.04
environment: release
permissions:
id-token: write
steps:
- name: Download wheel files
uses: actions/download-artifact@v4
with:
name: wheels
path: dist_download
- name: Get whl and gz files
run: |
mkdir dist;
find dist_download -type f -exec mv {} dist \;
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ bump:
full-release:
make remove-dev
git push
make upload-main
make github-release
make bump
git push
Expand Down
Loading