Skip to content

fix: xcode version

fix: xcode version #6

Workflow file for this run

# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Swift
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
# vars
APP_NAME: ${{ vars.APP_NAME }}
INFO_PLIST_PATH: ${{ vars.INFO_PLIST_PATH }}
PROJECT_PATH: ${{ vars.PROJECT_PATH }}
VERSION_FILE_PATH: ${{ vars.VERSION_FILE_PATH }}
XCODE_BUILD_DIR: ${{ vars.XCODE_BUILD_DIR }}
XCODE_BUILD_PATH: ${{ vars.XCODE_BUILD_PATH }}
# secrets
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ALI_AK: ${{ secrets.ALI_AK }}
ALI_SK: ${{ secrets.ALI_SK }}
BAIDU_AK: ${{ secrets.BAIDU_AK }}
BAIDU_SK: ${{ secrets.BAIDU_SK }}
BIGHUGETHESAURUS_SK: ${{ secrets.BIGHUGETHESAURUS_SK }}
NIUTRANS_SK: ${{ secrets.NIUTRANS_SK }}
VOLCENGINE_AK: ${{ secrets.VOLCENGINE_AK }}
VOLCENGINE_SK: ${{ secrets.VOLCENGINE_SK }}
SPARKLE_ED_PRIVATE_KEY: ${{ secrets.SPARKLE_ED_PRIVATE_KEY }}
jobs:
build:
runs-on: macos-latest
if: ${{ !contains(github.event.head_commit.message, 'chore') }}
steps:
- uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Release
run: scripts/release.sh