@@ -34,48 +34,52 @@ jobs:
3434 status : ${{ job.status }}
3535 deployment_id : ${{ steps.deployment.outputs.deployment_id }}
3636
37- # fails: https://github.com/Carthage/Carthage/issues/3130
38- # carthage:
39- # runs-on: macos-latest
40- # steps:
37+ carthage :
38+ runs-on : macos-latest
39+ steps :
4140
42- # - name: Start Deployment
43- # uses: bobheadxi/deployments@v0.5.2
44- # id: deployment
45- # with:
46- # step: start
47- # token: ${{ secrets.GITHUB_TOKEN }}
48- # env: carthage
41+ - name : Start Deployment
42+ uses : bobheadxi/deployments@v0.5.2
43+ id : deployment
44+ with :
45+ step : start
46+ token : ${{ secrets.GITHUB_TOKEN }}
47+ env : carthage
4948
50- # - uses: joutvhu/get-release@v1
51- # id: release
52- # with:
53- # tag_name: ${{ github.event.inputs.version }}
54- # env:
55- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+ - uses : maxim-lobanov/setup-xcode@v1
50+ with :
51+ xcode-version : ^11
52+ # Waiting on https://github.com/Carthage/Carthage/issues/3103 for Xcode 12
5653
57- # - uses: actions/checkout@v2
58- # - run: carthage build --no-skip-current --use-xcframeworks --platform macOS,iOS,watchOS,tvOS --archive
59- # - run: mv PromiseKit.framework.zip PromiseKit-$v.framework.zip
54+ - uses : joutvhu/get-release@v1
55+ id : release
56+ with :
57+ tag_name : ${{ github.event.inputs.version }}
58+ env :
59+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6060
61- # - uses: actions/upload-release-asset@v1
62- # with:
63- # upload_url: ${{ steps.outputs.release.upload_url }}
64- # asset_path: ./PromiseKit-$v.framework.zip
65- # asset_name: PromiseKit-$v.framework.zip
66- # asset_content_type: application/zip
67- # env:
68- # v: ${{ github.event.inputs.version }}
69- # GITHUB_TOKEN: ${{ github.token }}
61+ - uses : actions/checkout@v2
62+ - run : carthage build --no-skip-current --platform macOS,iOS,watchOS,tvOS --archive
63+ - run : mv PromiseKit.framework.zip PromiseKit-$v.framework.zip
7064
71- # - name: Seal Deployment
72- # uses: bobheadxi/deployments@v0.5.2
73- # if: always()
74- # with:
75- # step: finish
76- # token: ${{ secrets.GITHUB_TOKEN }}
77- # status: ${{ job.status }}
78- # deployment_id: ${{ steps.deployment.outputs.deployment_id }}
65+ - uses : actions/upload-release-asset@v1
66+ with :
67+ upload_url : ${{ steps.outputs.release.upload_url }}
68+ asset_path : ./PromiseKit-$v.framework.zip
69+ asset_name : PromiseKit-$v.framework.zip
70+ asset_content_type : application/zip
71+ env :
72+ v : ${{ github.event.inputs.version }}
73+ GITHUB_TOKEN : ${{ github.token }}
74+
75+ - name : Seal Deployment
76+ uses : bobheadxi/deployments@v0.5.2
77+ if : always()
78+ with :
79+ step : finish
80+ token : ${{ secrets.GITHUB_TOKEN }}
81+ status : ${{ job.status }}
82+ deployment_id : ${{ steps.deployment.outputs.deployment_id }}
7983
8084 docs :
8185 runs-on : macos-latest
0 commit comments