update AirportItlwm #224
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: Build and Release | |
on: | |
push: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
build: | |
name: Build macOS App | |
runs-on: macos-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: '0' | |
persist-credentials: false | |
- name: Install the Apple certificate | |
env: | |
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }} | |
P12_PASSWORD: ${{ secrets.P12_PASSWORD }} | |
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} | |
run: | | |
CERTIFICATE_PATH=$RUNNER_TEMP/applecert.p12 | |
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db | |
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode --output $CERTIFICATE_PATH | |
security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH | |
security set-keychain-settings -lut 21600 $KEYCHAIN_PATH | |
security unlock-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH | |
security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH | |
security list-keychain -d user -s $KEYCHAIN_PATH | |
- name: Determine tag name | |
id: tagname | |
run: echo "name=$(node -e "console.log(require('./package.json').version)")" >> $GITHUB_OUTPUT | |
- name: Create a draft release | |
if: github.event_name == 'workflow_dispatch' | |
uses: softprops/action-gh-release@v1 | |
with: | |
body: "Changes(변경 사항)\n\n1. \n\n**Before installing, please read [this](https://github.com/mswgen/oc-updater/blob/v1/README.md#installation) carefully!**\n\n**설치하기 전 [여기](https://github.com/mswgen/oc-updater/blob/v1/README-ko.md#installation)를 읽어주세요!**" | |
draft: true | |
tag_name: ${{ steps.tagname.outputs.name }} | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Install Dependencies | |
run: yarn | |
- name: Build | |
run: yarn build | |
env: | |
GH_TOKEN: ${{ github.token }} | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: mac | |
path: | | |
out/OpenCore Updater-*.*.*-universal.dmg | |
out/latest-mac.yml |