Skip to content

Merge pull request #5 from moralesresearch/v2.0 #14

Merge pull request #5 from moralesresearch/v2.0

Merge pull request #5 from moralesresearch/v2.0 #14

Workflow file for this run

name: macOS Build
on:
push:
tags:
- '*'
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller PyPDF2
# pip install -r requirements.txt # If you have requirements
- name: Build executable
run: pyinstaller PDFCompiler.spec
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: pdf-compiler-macos
path: dist
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.YOUR_GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: Automatic release from GitHub Actions
draft: false
prerelease: false
- name: Attach Artifacts
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.YOUR_GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/
asset_name: PDF\ Compiler.app
asset_content_type: application/octet-stream