Skip to content

templates/by_year: solo X-RAY, SOLUTION NMR and EM #7

templates/by_year: solo X-RAY, SOLUTION NMR and EM

templates/by_year: solo X-RAY, SOLUTION NMR and EM #7

name: Build and Publish Executable
on:
push:
branches:
- main
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pyinstaller
- name: Build executable with PyInstaller
run: |
pyinstaller --onefile --name=rcsbsync src/project.py
- name: Upload executable as artifact
uses: actions/upload-artifact@v3
with:
name: rcsbsync-${{ matrix.os }}-executable
path: dist/rcsbsync