templates/by_year: solo X-RAY, SOLUTION NMR and EM #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |