Skip to content

Commit

Permalink
wip release
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Dec 17, 2023
1 parent 94e6efb commit fccd7a5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,21 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: '8.12.1'
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install frontend dependencies
run: pnpm install --prefer-frozen-lockfile
Expand All @@ -34,10 +48,11 @@ jobs:
version_file_path: invokeai/version/invokeai_version.py

- name: Run create_installer.sh
id: create_installer
run: ./create_installer.sh
working-directory: installer

- name: Upload build as workflow artifact
uses: actions/upload-artifact@v4
with:
path: installer/InvokeAI-installer-${{fromJSON(steps.check-python-version.outputs.VERSION)}}.zip
path: installer/${{steps.create_installer.outputs.INSTALLER_NAME)}}
9 changes: 6 additions & 3 deletions installer/create_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ VERSION=$(
cd ..
python -c "from invokeai.version import __version__ as version; print(version)"
)
PATCH=""
VERSION="v${VERSION}${PATCH}"

echo -e "${BGREEN}HEAD${RESET}:"
git_show
Expand Down Expand Up @@ -104,10 +102,15 @@ chmod a+x InvokeAI-Installer/install.sh
perl -p -e "s/^set INVOKEAI_VERSION=.*/set INVOKEAI_VERSION=$VERSION/" install.bat.in >InvokeAI-Installer/install.bat
cp WinLongPathsEnabled.reg InvokeAI-Installer/

FILENAME=InvokeAI-installer-$VERSION.zip

# Zip everything up
zip -r InvokeAI-installer-$VERSION.zip InvokeAI-Installer
zip -r $FILENAME InvokeAI-Installer

# clean up
rm -rf InvokeAI-Installer tmp dist ../invokeai/frontend/web/dist/

# Set the output variable for github action
echo "::set-output name=INSTALLER_FILENAME::$FILENAME"

exit 0

0 comments on commit fccd7a5

Please sign in to comment.