Skip to content

Commit

Permalink
build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssabedard committed Jan 14, 2025
1 parent 46399c4 commit b0c2a6c
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,35 @@ jobs:
cp -rv mpv/scripts/mpv2anki build/${DIR_NAME}/mpv/scripts/ || echo "Warning: scripts copy failed"
cp -rv mpv/script-opts/* build/${DIR_NAME}/mpv/script-opts/ || echo "Warning: script-opts copy failed"
echo "Checking if docs/note_types exists..."
if [ -d "docs/note_types" ]; then
echo "Checking if note_types exists..."
mkdir -p build/${DIR_NAME}/note_types
if [ -d "docs/note_types/basic" ]; then
# Copy note types
cp -rv docs/note_types/* build/${DIR_NAME}/ || echo "Warning: note_types copy failed"
cp -rv "docs/note_types/basic/Sentence Mining.apkg" build/${DIR_NAME}/note_types/ || echo "Warning: note_types copy failed"
else
echo "docs/note_types directory not found"
echo "docs/note_types/basic directory not found"
fi
echo "Creating zip file..."
cd build
zip -rv ../${DIR_NAME}.zip ${DIR_NAME}/
cd ..
# Set the zip file path as an output
ls -la *.zip # Debug: List zip files
echo "PACKAGE_PATH=${DIR_NAME}.zip" >> $GITHUB_OUTPUT
echo "Build process completed"
- name: Create Release
uses: softprops/action-gh-release@v2
with:
name: mpv2anki v${{ steps.get_version.outputs.VERSION }}
files: ${{ steps.create_package.outputs.PACKAGE_PATH }}
body_path: CHANGELOG.md
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit b0c2a6c

Please sign in to comment.