fix: ci #3
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 waifu2x! 🖼️ | |
on: | |
push: | |
branches: | |
- master | |
env: | |
XCBUILD_PATH: "build/Release" | |
jobs: | |
ReleaseCI: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout 🚚 | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- name: Install Dependencies 🚀 | |
run: brew install create-dmg tuist | |
env: | |
HOMEBREW_NO_INSTALL_CLEANUP: 1 | |
HOMEBREW_NO_AUTO_UPDATE: 1 | |
- name: Setup latest Xcode ⚒️ | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest | |
#- name: Import Certificates 📜 | |
# uses: apple-actions/import-codesign-certs@v1 | |
# with: | |
# p12-file-base64: ${{ secrets.CERTIFICATES_P12 }} | |
# p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }} | |
- name: Generate project 🚀 | |
#run: TUIST_BUNDLE=true tuist generate | |
run: tuist generate | |
- name: Release Build 🔨 | |
run: tuist build --configuration Release --build-output-path build | |
#- name: Check Send signature | |
# run: codesign --verify -vvvv --deep --strict "${XCBUILD_PATH}/${MACOS_APP_ARTIFACT}" | |
- name: Create Disk Image 💿 | |
run: | | |
mkdir Artifacts | |
zip -r ${XCBUILD_PATH}/Waifu2X.zip ${XCBUILD_PATH}/Waifu2X.app | |
cp ${XCBUILD_PATH}/*.dmg Artifacts | |
cp ${XCBUILD_PATH}/*.zip Artifacts | |
- name: Upload Artifacts ☕️ | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Release | |
path: Artifacts/* |