Skip to content

Commit

Permalink
Release simple-rag template
Browse files Browse the repository at this point in the history
  • Loading branch information
blythed committed Nov 8, 2024
1 parent ef121e2 commit 9197e1f
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 3 deletions.
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

0 comments on commit 9197e1f

Please sign in to comment.