Merge pull request #186 from b123400/fix-185 #12
Workflow file for this run
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: Publish Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
name: Archive | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup credentails | |
env: # Or as an environment variable | |
HIN_CLIENT_ID: ${{ secrets.HIN_CLIENT_ID }} | |
HIN_CLIENT_SECRET: ${{ secrets.HIN_CLIENT_SECRET }} | |
CERTIFACTION_SERVER: ${{ secrets.CERTIFACTION_SERVER }} | |
CERTIFACTION_TEST_SERVER: ${{ secrets.CERTIFACTION_TEST_SERVER }} | |
ZURROSE_CERTIFICATE_PASSWORD: ${{ secrets.ZURROSE_CERTIFICATE_PASSWORD }} | |
ZURROSE_CERTIFICATE: ${{ secrets.ZURROSE_CERTIFICATE }} | |
run: | | |
sed "s/YOUR_HIN_CLIENT_ID/$HIN_CLIENT_ID/;s/YOUR_HIN_CLIENT_SECRET/$HIN_CLIENT_SECRET/;s#YOUR_CERTIFACTION_SERVER#$CERTIFACTION_SERVER#;s#YOUR_CERTIFACTION_TEST_SERVER#$CERTIFACTION_TEST_SERVER#" ./AmiKoDesitin/HINClient/MLHINClientCredential.sample.h > ./AmiKoDesitin/HINClient/MLHINClientCredential.h | |
sed "s/XXXXXXX/$ZURROSE_CERTIFICATE_PASSWORD/" AmiKoDesitin/EPrescription/ZurRoseCredential.h.sample > ./AmiKoDesitin/EPrescription/ZurRoseCredential.h | |
echo $ZURROSE_CERTIFICATE | base64 --decode > AmiKoDesitin/EPrescription/client.p12 | |
- name: Download databases | |
run: | | |
cd AmiKoDesitin | |
curl -o amiko_report_de.html http://pillbox.oddb.org/amiko_report_de.html | |
curl -o amiko_db_full_idx_de.zip http://pillbox.oddb.org/amiko_db_full_idx_de.zip | |
curl -o amiko_frequency_de.db.zip http://pillbox.oddb.org/amiko_frequency_de.db.zip | |
curl -o drug_interactions_csv_de.zip http://pillbox.oddb.org/drug_interactions_csv_de.zip | |
curl -o amiko_report_fr.html http://pillbox.oddb.org/amiko_report_fr.html | |
curl -o amiko_db_full_idx_fr.zip http://pillbox.oddb.org/amiko_db_full_idx_fr.zip | |
curl -o amiko_frequency_fr.db.zip http://pillbox.oddb.org/amiko_frequency_fr.db.zip | |
curl -o drug_interactions_csv_fr.zip http://pillbox.oddb.org/drug_interactions_csv_fr.zip | |
unzip amiko_db_full_idx_de.zip | |
unzip amiko_frequency_de.db.zip | |
unzip drug_interactions_csv_de.zip | |
unzip amiko_db_full_idx_fr.zip | |
unzip amiko_frequency_fr.db.zip | |
unzip drug_interactions_csv_fr.zip | |
rm amiko_db_full_idx_de.zip amiko_frequency_de.db.zip drug_interactions_csv_de.zip amiko_db_full_idx_fr.zip amiko_frequency_fr.db.zip drug_interactions_csv_fr.zip | |
- name: Build | |
run: | | |
pod --version | |
pod install | |
mkdir archive | |
xcodebuild clean build archive -allowProvisioningUpdates -workspace AmikoDesitin.xcworkspace -scheme AmiKoDesitin -archivePath ./archive/amiko-archive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | |
xcodebuild clean build archive -allowProvisioningUpdates -workspace AmikoDesitin.xcworkspace -scheme CoMedDesitin -archivePath ./archive/comed-archive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | |
ls archive | |
zip -r archive.zip ./archive | |
- uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
artifacts: | | |
./archive.zip |