Nightly #53
Workflow file for this run
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: Nightly | |
on: | |
#push: | |
# branches: [ master ] | |
#pull_request: | |
# branches: [ master ] | |
schedule: | |
- cron: '0 23 * * *' | |
workflow_dispatch: | |
jobs: | |
nightly: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Bootstrap Carthage | |
env: | |
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: carthage bootstrap --platform macOS | |
- name: Install xcpretty | |
run: gem install xcpretty --no-document --quiet | |
- name: Build | |
run: | | |
set -o pipefail | |
xcodebuild clean | |
xcodebuild build -verbose -allowProvisioningUpdates -configuration release -project MacPass.xcodeproj -scheme MacPass CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" -derivedDataPath ./build | |
- name: Export Localizations | |
run: | | |
xcodebuild -project MacPass.xcodeproj -exportLocalizations -localizationPath Localisations -exportLanguage de | |
xcodebuild -project MacPass.xcodeproj -exportLocalizations -localizationPath Localisations -exportLanguage en | |
xcodebuild -project MacPass.xcodeproj -exportLocalizations -localizationPath Localisations -exportLanguage es | |
xcodebuild -project MacPass.xcodeproj -exportLocalizations -localizationPath Localisations -exportLanguage fr | |
xcodebuild -project MacPass.xcodeproj -exportLocalizations -localizationPath Localisations -exportLanguage it | |
xcodebuild -project MacPass.xcodeproj -exportLocalizations -localizationPath Localisations -exportLanguage nl | |
xcodebuild -project MacPass.xcodeproj -exportLocalizations -localizationPath Localisations -exportLanguage ru | |
xcodebuild -project MacPass.xcodeproj -exportLocalizations -localizationPath Localisations -exportLanguage sv-SE | |
xcodebuild -project MacPass.xcodeproj -exportLocalizations -localizationPath Localisations -exportLanguage zh-Hans | |
- name: Zip Localizations | |
run: zip -9ry Localisations.zip Localisations | |
- name: Package Release | |
run: | | |
cd ./build/Build/Products/Release | |
zip -9ry MacPass-continuous.zip MacPass.app | |
- name: Create MD5 Hash | |
run: | | |
cd ./build/Build/Products/Release | |
shasum -a 256 MacPass-continuous.zip > MacPass-continuous.zip.sha256 | |
#- name: Release | |
# uses: eine/tip@master | |
# with: | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# tag: continuous | |
# files: | | |
# Localisations.zip | |
# ./build/Build/Products/Release/MacPass-continuous.zip | |
# ./build/Build/Products/Release/MacPass-continuous.zip.sha256 | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
tag_name: continuous | |
files: | | |
Localisations.zip | |
./build/Build/Products/Release/MacPass-continuous.zip | |
./build/Build/Products/Release/MacPass-continuous.zip.sha256 |