Skip to content

Update alloutputkeys.txt #39

Update alloutputkeys.txt

Update alloutputkeys.txt #39

name: Update zip on OSF
on:
workflow_dispatch:
push:
env:
ZIP_NAME: "LEPHARE-data.zip"
OSF_PROJ_ID: "mvpks"
OSF_USER: "[email protected]" # TODO would be nice to have generic user account
OSF_PASSWORD: ${{ secrets.OSF_PASS }}
jobs:
zip-and-upload:
name: Zip repo and upload to OSF
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # Check out the repository
- name: Import packages
run: |
pip install osfclient
- name: Zip repo # TODO would be nice to compare hash of new zip to currently uploaded zip
run: |
zip -r $ZIP_NAME .
- name: Make .osfcli.config file
run: |
echo "[osf]" > .osfcli.config
echo "username = $OSF_USER" >> .osfcli.config
echo "project = $OSF_PROJ_ID" >> .osfcli.config
echo "password = $OSF_PASSWORD" >> .osfcli.config
- name: Check .osfcli.config file
run: |
cat .osfcli.config
- name: Update on OSF
run: |
osf upload --update $ZIP_NAME $ZIP_NAME