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

Release simple-rag template #2608

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions .github/workflows/ci_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- main
- '[0-9]+.[0-9]+'
paths: # Paths that may affect code quality
- 'superduper/**'
- 'test/**'
- 'pyproject.toml'
paths-ignore:
- "plugins/**"
- ".github/**"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci_templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
if: env.mode == 'changed'
id: set-matrix-1
run: |
# IFS=$'\n'
changed_files=(superduper/components/streamlit.py .github/workflows/ci_templates.yaml .gitignore superduper/__init__.py)
IFS=$'\n'
changed_files=(${{ steps.changed-files-specific.outputs.all_changed_files }})
declare -A template_set

# Check each file if it's in the templates/ directory
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/release_templates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release templates
on:
push:
branches:
- main
paths: # run this action only when the templates folder is changed
- 'templates/**'

jobs:
plugin_update_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Get changed files for templates
id: changed-files-specific
uses: tj-actions/changed-files@v44

- name: Filter changed plugins and set output
id: set-matrix
env:
AWS_ACCESS_KEY_ID: ${{ secrets.SUPERDUPER_PUBLIC_TEMPLATES_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SUPERDUPER_PUBLIC_TEMPLATES_AWS_SECRET_ACCESS_KEY}}
run: |
IFS=$'\n'
changed_files=(${{ steps.changed-files-specific.outputs.all_changed_files }})
declare -A template_set
python3 -m pip install awscli
for file in "${changed_files[@]}"; do
if [[ "$file" =~ ^templates/ ]]; then
template_name=$(echo "$file" | cut -d '/' -f 2)
version=$(cat "templates/$template_name/VERSION)
cd templates/$template_name && zip -r "${template_name}.zip" . & cd ../..
echo "Releasing ${template_name}-${version}.zip !!!"
aws s3 cp "templates/${template_name}/${template_name}.zip "s3://superduper-public-templates/${template_name}-${version}.zip"
echo "Releasing ${template_name}-${version}.zip !!!... DONE"
fi
done
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

**Before you create a Pull Request, remember to update the Changelog with your changes.**

## Changes Since Last Release
## Changes Since Last Release

#### Changed defaults / behaviours

Expand Down
1 change: 1 addition & 0 deletions templates/simple_rag/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.5.0.dev
Loading