diff --git a/.github/workflows/parse-new-experience.yml b/.github/workflows/parse-new-experience.yml index 3709240..0aea88c 100644 --- a/.github/workflows/parse-new-experience.yml +++ b/.github/workflows/parse-new-experience.yml @@ -19,7 +19,7 @@ jobs: template-path: .github/ISSUE_TEMPLATE/new_experience.yml - run: echo '${{ steps.issue-parser.outputs.jsonString }}' > issue.json - run: | - echo "experience_name=$(echo ${{ steps.issue-parser.outputs.issueparser_title }} | sed -e 's/[^[:alnum:]]/_/g' | tr -s '_' | tr A-Z a-z)" >> "$GITHUB_ENV" + echo "experience_name=$(echo '${{ steps.issue-parser.outputs.issueparser_title }}' | sed -e 's/[^[:alnum:]]/_/g' | tr -s '_' | tr A-Z a-z)" >> "$GITHUB_ENV" echo "id=$(uuidgen)" >> "$GITHUB_ENV" - run: | jq '. + {"author": "${{ github.event.issue.user.login }}", "name": "${{ env.experience_name }}", "id": "${{ env.id }}"}' issue.json > tmp && mv tmp issue.json @@ -27,6 +27,11 @@ jobs: run: | node tools/prepare-experience.js rm issue.json + apt update + apt install -y pngquant + for file in "experiences/${{ env.experience_name }}/screenshots/*.png"; do + pngquant --f "$file" -o "$file" + done file_size=$(stat -c %s "experiences/${{ env.experience_name }}/${{ env.experience_name }}.zip") jq --arg file_size $file_size '.fileSize = ($file_size|tonumber)' "experiences/${{ env.experience_name }}/manifest.json" > temp.json && mv temp.json "experiences/${{ env.experience_name }}/manifest.json" rm -f temp.json diff --git a/experiences/daily_journal/screenshots/screenshot-1.png b/experiences/daily_journal/screenshots/screenshot-1.png index 7de78ed..ce16709 100644 Binary files a/experiences/daily_journal/screenshots/screenshot-1.png and b/experiences/daily_journal/screenshots/screenshot-1.png differ diff --git a/experiences/daily_journal/screenshots/screenshot-2.png b/experiences/daily_journal/screenshots/screenshot-2.png index 96d232a..86033d4 100644 Binary files a/experiences/daily_journal/screenshots/screenshot-2.png and b/experiences/daily_journal/screenshots/screenshot-2.png differ diff --git a/experiences/data_vault/screenshots/screenshot-1.png b/experiences/data_vault/screenshots/screenshot-1.png index ef56a9e..410146c 100644 Binary files a/experiences/data_vault/screenshots/screenshot-1.png and b/experiences/data_vault/screenshots/screenshot-1.png differ diff --git a/experiences/data_vault/screenshots/screenshot-2.png b/experiences/data_vault/screenshots/screenshot-2.png index d4ca8dd..bf84bae 100644 Binary files a/experiences/data_vault/screenshots/screenshot-2.png and b/experiences/data_vault/screenshots/screenshot-2.png differ diff --git a/experiences/habit_tracker/screenshots/screenshot-1.png b/experiences/habit_tracker/screenshots/screenshot-1.png index a4b71c5..ade9d01 100644 Binary files a/experiences/habit_tracker/screenshots/screenshot-1.png and b/experiences/habit_tracker/screenshots/screenshot-1.png differ diff --git a/experiences/language_flashcards/screenshots/screenshot-1.png b/experiences/language_flashcards/screenshots/screenshot-1.png index ed8caef..716f139 100644 Binary files a/experiences/language_flashcards/screenshots/screenshot-1.png and b/experiences/language_flashcards/screenshots/screenshot-1.png differ diff --git a/experiences/language_flashcards/screenshots/screenshot-2.png b/experiences/language_flashcards/screenshots/screenshot-2.png index 7934f63..e5f379d 100644 Binary files a/experiences/language_flashcards/screenshots/screenshot-2.png and b/experiences/language_flashcards/screenshots/screenshot-2.png differ diff --git a/experiences/language_flashcards/screenshots/screenshot-3.png b/experiences/language_flashcards/screenshots/screenshot-3.png index 40c0982..e25104d 100644 Binary files a/experiences/language_flashcards/screenshots/screenshot-3.png and b/experiences/language_flashcards/screenshots/screenshot-3.png differ diff --git a/experiences/movie_database/screenshots/screenshot-1.png b/experiences/movie_database/screenshots/screenshot-1.png index 69bd345..dcfdfd7 100644 Binary files a/experiences/movie_database/screenshots/screenshot-1.png and b/experiences/movie_database/screenshots/screenshot-1.png differ diff --git a/experiences/movie_database/screenshots/screenshot-2.png b/experiences/movie_database/screenshots/screenshot-2.png index d68ebf8..4c117d5 100644 Binary files a/experiences/movie_database/screenshots/screenshot-2.png and b/experiences/movie_database/screenshots/screenshot-2.png differ diff --git a/experiences/recipe_book_and_meal_planner/screenshots/screenshot-1.png b/experiences/recipe_book_and_meal_planner/screenshots/screenshot-1.png index 0e0bb04..4cbdd33 100644 Binary files a/experiences/recipe_book_and_meal_planner/screenshots/screenshot-1.png and b/experiences/recipe_book_and_meal_planner/screenshots/screenshot-1.png differ diff --git a/experiences/recipe_book_and_meal_planner/screenshots/screenshot-2.png b/experiences/recipe_book_and_meal_planner/screenshots/screenshot-2.png index 8a62b43..74a5a38 100644 Binary files a/experiences/recipe_book_and_meal_planner/screenshots/screenshot-2.png and b/experiences/recipe_book_and_meal_planner/screenshots/screenshot-2.png differ diff --git a/experiences/study_hub/screenshots/screenshot-1.png b/experiences/study_hub/screenshots/screenshot-1.png index e8aa9d2..f8e0306 100644 Binary files a/experiences/study_hub/screenshots/screenshot-1.png and b/experiences/study_hub/screenshots/screenshot-1.png differ diff --git a/experiences/study_hub/screenshots/screenshot-2.png b/experiences/study_hub/screenshots/screenshot-2.png index c5ed55b..bf9cd85 100644 Binary files a/experiences/study_hub/screenshots/screenshot-2.png and b/experiences/study_hub/screenshots/screenshot-2.png differ diff --git a/experiences/trip_planner/screenshots/screenshot-1.png b/experiences/trip_planner/screenshots/screenshot-1.png index 4c6dfd7..e1f1f37 100644 Binary files a/experiences/trip_planner/screenshots/screenshot-1.png and b/experiences/trip_planner/screenshots/screenshot-1.png differ diff --git a/experiences/trip_planner/screenshots/screenshot-2.png b/experiences/trip_planner/screenshots/screenshot-2.png index 1bd5034..1b6c349 100644 Binary files a/experiences/trip_planner/screenshots/screenshot-2.png and b/experiences/trip_planner/screenshots/screenshot-2.png differ