Skip to content

Commit

Permalink
test upload lib
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-24 committed Mar 21, 2024
1 parent 48053e6 commit a0c4de7
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
python-version: '3.10'
- name: Install dependencies
run: |
pip3 install pip-tools
make install-dev
- name: Build
run: |
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/publish-library.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish library in release

on:
push:
branches: [ master, dev ]
pull_request:
branches: [ dev ]

jobs:
build:
name: Make library
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
make install-dev
- name: Build
run: |
cb_fetch_data library/DATA_SOURCES.yml -o library.h5
- name: Upload library to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: library.h5
asset_name: latest_library.h5
tag: ${{ github.ref }}
overwrite: true
body: "Latest library"
5 changes: 1 addition & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package
name: Run tests

on:
push:
Expand Down

0 comments on commit a0c4de7

Please sign in to comment.