Skip to content

Sets up GitHub Workflows #4

Sets up GitHub Workflows

Sets up GitHub Workflows #4

Workflow file for this run

name: Create DMG File
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
create_dmg:
name: Create dmg
runs-on: macos-latest
steps:
# Copy example-config.json -> config.json in configs folder
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install create-dmg
run: brew install create-dmg
- name: Create and Install Virtual Environment
run: |
pip3 install -r requirements.txt
- name: Make dmg
run: |
cp ./configs/example-config.json ./configs/config.json
./make_dmg.sh
- name: Upload DMG as a release asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: path/to/your.dmg
asset_name: your-file-name.dmg
asset_content_type: application/octet-stream
- name: Find DMG file
id: find_dmg
run: |
dmg_file=$(find dist/ -maxdepth 1 -type f -name "*.dmg")
echo "::set-output name=dmg_file::$dmg_file"
- name: Archive DMG as an artifact
uses: actions/upload-artifact@v2
with:
name: py-message-chat-gpt-dmg
path: ${{ steps.find_dmg.outputs.dmg_file }}