This commit is contained in:
Core 2022-08-03 21:14:59 +01:00
parent e1b95c1c2a
commit 86fc343dba
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -40,44 +40,46 @@ jobs:
- name: Change Version - name: Change Version
run: sudo chmod +x resources/version.sh && ./resources/version.sh || true run: sudo chmod +x resources/version.sh && ./resources/version.sh || true
- name: Sign in to EVS - run: echo "test" > test.md
run: |
python3 -m pip install --upgrade castlabs-evs
python3 -m castlabs_evs.account refresh -A ${{ secrets.EVS_ACCOUNT_NAME }} -P ${{ secrets.EVS_PASSWD }}
- name: Setup Environment # - name: Sign in to EVS
run: brew install automake #libtool autoconf # run: |
# python3 -m pip install --upgrade castlabs-evs
- name: Install and Configure Node Modules # python3 -m castlabs_evs.account refresh -A ${{ secrets.EVS_ACCOUNT_NAME }} -P ${{ secrets.EVS_PASSWD }}
run: | #
yarn install # - name: Setup Environment
cp resources/verror-types node_modules/@types/verror/index.d.ts # run: brew install automake #libtool autoconf
cp resources/macPackager.js node_modules/app-builder-lib/out/macPackager.js #
rm -r node_modules/pouchdb-node/node_modules/leveldown # - name: Install and Configure Node Modules
rm -r node_modules/pouchdb-adapter-leveldb/node_modules/leveldown # run: |
# yarn install
# cp resources/verror-types node_modules/@types/verror/index.d.ts
# Build the DMG # cp resources/macPackager.js node_modules/app-builder-lib/out/macPackager.js
- name: Build the DMG # rm -r node_modules/pouchdb-node/node_modules/leveldown
env: # rm -r node_modules/pouchdb-adapter-leveldb/node_modules/leveldown
CSC_LINK: ${{ secrets.CSC_LINK }} #
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} #
APPLEID: ${{ secrets.APPLEID }} # # Build the DMG
APPLEIDPASS: ${{ secrets.APPLEIDPASS }} # - name: Build the DMG
APPLE_ID: ${{ secrets.APPLEID }} # env:
APPLE_ID_PASSWORD: ${{ secrets.APPLEIDPASS }} # CSC_LINK: ${{ secrets.CSC_LINK }}
PSC_NAME: ${{ secrets.PSC_NAME }} # CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer # APPLEID: ${{ secrets.APPLEID }}
run: yarn dist:universalNotWorking -p never # APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
# APPLE_ID: ${{ secrets.APPLEID }}
- name: Add license to DMG # APPLE_ID_PASSWORD: ${{ secrets.APPLEIDPASS }}
run: npx dmg-license resources/license.json dist/*.dmg # PSC_NAME: ${{ secrets.PSC_NAME }}
# DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
- name: Import # run: yarn dist:universalNotWorking -p never
uses: apple-actions/import-codesign-certs@v1 #
with: # - name: Add license to DMG
p12-file-base64: ${{ secrets.CSC_LINK }} # run: npx dmg-license resources/license.json dist/*.dmg
p12-password: ${{ secrets.CSC_KEY_PASSWORD }} #
# - name: Import
# uses: apple-actions/import-codesign-certs@v1
# with:
# p12-file-base64: ${{ secrets.CSC_LINK }}
# p12-password: ${{ secrets.CSC_KEY_PASSWORD }}
# Build to PKG # Build to PKG
# - name: Build the PKG # - name: Build the PKG
@ -92,13 +94,13 @@ jobs:
# sleep 5m # sleep 5m
# xcrun stapler staple dist/Cider*.pkg || true # xcrun stapler staple dist/Cider*.pkg || true
- name: Upload a Build Artifact # - name: Upload a Build Artifact
uses: actions/upload-artifact@v2.2.3 # uses: actions/upload-artifact@v2.2.3
with: # with:
name: Cider-macOS-${{ env.APP_VERSION }} # name: Cider-macOS-${{ env.APP_VERSION }}
path: | # path: |
dist/*.dmg # dist/*.dmg
dist/latest-mac.yml # dist/latest-mac.yml
- name: Upload files to release - name: Upload files to release
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -107,10 +109,7 @@ jobs:
# A personal access token for the GitHub repository in which the release will be created and edited. # A personal access token for the GitHub repository in which the release will be created and edited.
# It is recommended to create the access token with the following scopes: `repo, user, admin:repo_hook`. # It is recommended to create the access token with the following scopes: `repo, user, admin:repo_hook`.
repo_token: ${{ secrets.RELEASE_TOKEN }} repo_token: ${{ secrets.RELEASE_TOKEN }}
file_glob: true file: test.md
file: |
dist/*.dmg
dist/latest-mac.yml
tag: v${{ env.APP_VERSION }} tag: v${{ env.APP_VERSION }}
# - name: Upload Artifacts to Latest Release # - name: Upload Artifacts to Latest Release