mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 16:24:00 +01:00
Run commands in one step to reduce waiting time
This commit is contained in:
parent
bcbb6eaf28
commit
b853973db1
12
.github/workflows/build-and-sign-macos.yml
vendored
12
.github/workflows/build-and-sign-macos.yml
vendored
@ -10,17 +10,13 @@ jobs:
|
||||
runs-on: macos-11.0
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Download latest executable executable
|
||||
run: |
|
||||
brew install jq
|
||||
export TAG_NAME=`curl https://api.github.com/repos/ddworken/hishtory/releases/latest | jq -r .tag_name`
|
||||
curl -o hishtory-darwin-arm64 https://github.com/ddworken/hishtory/releases/download/$TAG_NAME-darwin-arm64/hishtory-darwin-arm64
|
||||
curl -o hishtory-darwin-amd64 https://github.com/ddworken/hishtory/releases/download/$TAG_NAME-darwin-arm64/hishtory-darwin-amd64
|
||||
- name: Codesign executable
|
||||
- name: Download and sign the latest executables
|
||||
env:
|
||||
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
|
||||
run: |
|
||||
export TAG_NAME=`curl https://api.github.com/repos/ddworken/hishtory/releases/latest | jq -r .tag_name`
|
||||
curl -o hishtory-darwin-arm64 https://github.com/ddworken/hishtory/releases/download/$TAG_NAME-darwin-arm64/hishtory-darwin-arm64
|
||||
curl -o hishtory-darwin-amd64 https://github.com/ddworken/hishtory/releases/download/$TAG_NAME-darwin-arm64/hishtory-darwin-amd64
|
||||
echo $MACOS_CERTIFICATE | base64 -d > certificate.p12
|
||||
security create-keychain build.keychain
|
||||
security default-keychain -s build.keychain
|
||||
|
Loading…
Reference in New Issue
Block a user