chore: repack macos x86 binary #36
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: Package | |
permissions: | |
# for actions/create-release, actions/upload-release-asset | |
contents: write | |
concurrency: | |
group: package-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- 'pkg/*' | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: full | |
jobs: | |
package-for-mac: | |
name: package-for-mac | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 5 | |
ref: v1.11.0 | |
- name: Set Env | |
run: | | |
export GIT_TAG_NAME=v1.11.0 | |
echo "GIT_TAG_NAME=$GIT_TAG_NAME" >> $GITHUB_ENV | |
- name: Build and package ckb-cli | |
env: | |
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }} | |
GPG_SIGNER: ${{ secrets.GPG_SIGNER }} | |
run: | | |
export GIT_TAG_NAME=v1.11.0 | |
make prod | |
gpg --quiet --batch --yes --decrypt --passphrase="$LARGE_SECRET_PASSPHRASE" --output devtools/ci/signer.asc devtools/ci/signer.asc.gpg | |
gpg --import devtools/ci/signer.asc | |
devtools/ci/package.sh target/release/ckb-cli | |
mv ${{ github.workspace }}/releases/ckb-cli_${{env.GIT_TAG_NAME }}_${{env.REL_PKG }} ${{ github.workspace }} | |
mv ${{ github.workspace }}/releases/ckb-cli_${{env.GIT_TAG_NAME }}_${{env.REL_PKG }}.asc ${{ github.workspace }} | |
- name: upload-zip-file | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ckb-cli_${{env.GIT_TAG_NAME }}_${{env.REL_PKG }} | |
path: ckb-cli_${{env.GIT_TAG_NAME }}_${{env.REL_PKG }} | |
- name: upload-asc-file | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ckb-cli_${{env.GIT_TAG_NAME }}_${{env.REL_PKG }}.asc | |
path: ckb-cli_${{env.GIT_TAG_NAME }}_${{env.REL_PKG }}.asc | |
env: | |
REL_PKG: x86_64-apple-darwin.zip |