why github actions gotta be different
This commit is contained in:
parent
bbec1f1546
commit
462fcbf614
2 changed files with 95 additions and 94 deletions
28
.github/workflows/build-macos.yml
vendored
28
.github/workflows/build-macos.yml
vendored
|
@ -51,15 +51,13 @@ jobs:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Change Version
|
- name: Change Version
|
||||||
run: |
|
run: sudo chmod +x resources/version.sh && ./resources/version.sh || true
|
||||||
sudo chmod +x resources/version.sh && ./resources/version.sh || true
|
|
||||||
git remote show origin
|
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
# - name: Initialize CodeQL
|
# - name: Initialize CodeQL
|
||||||
# uses: github/codeql-action/init@v1
|
# uses: github/codeql-action/init@v1
|
||||||
# with:
|
# with:
|
||||||
# languages: ${{ matrix.language }}
|
# languages: ${{ matrix.language }}
|
||||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
# By default, queries listed here will override any specified in a config file.
|
# By default, queries listed here will override any specified in a config file.
|
||||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||||
|
@ -72,18 +70,18 @@ jobs:
|
||||||
# and modify them (or add more) to build your code if your project
|
# and modify them (or add more) to build your code if your project
|
||||||
# uses a compiled language
|
# uses a compiled language
|
||||||
|
|
||||||
# - name : env
|
# - name : env
|
||||||
# run: |
|
# run: |
|
||||||
# export EVS_ACCOUNT_NAME=${{ secrets.EVS_ACCOUNT_NAME}} && export EVS_PASSWD=${{ secrets.EVS_PASSWD }}
|
# export EVS_ACCOUNT_NAME=${{ secrets.EVS_ACCOUNT_NAME}} && export EVS_PASSWD=${{ secrets.EVS_PASSWD }}
|
||||||
# export CSC_LINK=${{ secrets.CSC_LINK }} && export CSC_KEY_PASSWORD=${{ secrets.CSC_KEY_PASSWORD }}
|
# export CSC_LINK=${{ secrets.CSC_LINK }} && export CSC_KEY_PASSWORD=${{ secrets.CSC_KEY_PASSWORD }}
|
||||||
# export APPLEID=${{ secrets.APPLEID }} && export APPLEIDPASS=${{ secrets.APPLEIDPASS }}
|
# export APPLEID=${{ secrets.APPLEID }} && export APPLEIDPASS=${{ secrets.APPLEIDPASS }}
|
||||||
|
|
||||||
- name: Sign in to EVS
|
- name: Sign in to EVS
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install --upgrade castlabs-evs
|
python3 -m pip install --upgrade castlabs-evs
|
||||||
python3 -m castlabs_evs.account refresh -A ${{ secrets.EVS_ACCOUNT_NAME }} -P ${{ secrets.EVS_PASSWD }}
|
python3 -m castlabs_evs.account refresh -A ${{ secrets.EVS_ACCOUNT_NAME }} -P ${{ secrets.EVS_PASSWD }}
|
||||||
|
|
||||||
- name : Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
CSC_LINK: ${{ secrets.CSC_LINK }}
|
CSC_LINK: ${{ secrets.CSC_LINK }}
|
||||||
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
||||||
|
@ -105,8 +103,8 @@ jobs:
|
||||||
rm -r /node_modules/leveldown/node_modules/node-gyp-build || true
|
rm -r /node_modules/leveldown/node_modules/node-gyp-build || true
|
||||||
yarn dist:universalNotWorking -p never
|
yarn dist:universalNotWorking -p never
|
||||||
ls
|
ls
|
||||||
# - name: Perform CodeQL Analysis
|
# - name: Perform CodeQL Analysis
|
||||||
# uses: github/codeql-action/analyze@v1
|
# uses: github/codeql-action/analyze@v1
|
||||||
|
|
||||||
- name: Add license to dmg
|
- name: Add license to dmg
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# DEBUGGING
|
# DEBUGGING
|
||||||
|
curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable
|
||||||
|
|
||||||
|
# | grep sha | cut -d '"' -f 4 | sed 's/v//' | xargs | cut -d' ' -f1 | head -n 1
|
||||||
|
|
||||||
LATEST_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable | grep sha | cut -d '"' -f 4 | sed 's/v//' | xargs | cut -d' ' -f1 | head -n 1)
|
LATEST_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable | grep sha | cut -d '"' -f 4 | sed 's/v//' | xargs | cut -d' ' -f1 | head -n 1)
|
||||||
echo $LATEST_SHA
|
echo $LATEST_SHA
|
||||||
COMMITSINCESTABLE=$(git rev-list $LATEST_SHA..HEAD --count)
|
COMMITSINCESTABLE=$(git rev-list $LATEST_SHA..HEAD --count)
|
||||||
|
@ -8,7 +12,6 @@ echo $COMMITSINCESTABLE
|
||||||
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
|
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
|
||||||
echo $CURRENT_VERSION
|
echo $CURRENT_VERSION
|
||||||
|
|
||||||
git log $LATEST_SHA
|
|
||||||
|
|
||||||
#############################################################################################
|
#############################################################################################
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue