|
6 | 6 |
|
7 | 7 | jobs:
|
8 | 8 | bootstrap_build:
|
9 |
| - name: Bootstrap and Build |
| 9 | + name: Build and release |
10 | 10 | runs-on: macOS-latest
|
11 | 11 | steps:
|
12 | 12 | - name: Checkout
|
13 | 13 | uses: actions/checkout@v1
|
14 |
| - with: |
15 |
| - fetch-depth: 1 |
16 | 14 |
|
17 | 15 | - name: Restore cached pods
|
18 | 16 | uses: actions/cache@v1
|
@@ -50,43 +48,30 @@ jobs:
|
50 | 48 | name: archived
|
51 | 49 | path: ./tmp
|
52 | 50 |
|
53 |
| - release: |
54 |
| - name: Release |
55 |
| - runs-on: macOS-latest |
56 |
| - needs: [bootstrap_build] |
57 |
| - steps: |
58 |
| - - name: Checkout |
59 |
| - uses: actions/checkout@v1 |
60 |
| - with: |
61 |
| - fetch-depth: 1 |
62 |
| - |
63 |
| - - name: Download artifacts |
64 |
| - uses: actions/download-artifact@v1 |
65 |
| - with: |
66 |
| - name: archived |
67 |
| - |
68 |
| - - name: Restore cached gems |
69 |
| - uses: actions/cache@v1.0.0 |
70 |
| - id: restore-gems |
71 |
| - with: |
72 |
| - path: vendor |
73 |
| - key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} |
74 |
| - restore-keys: | |
75 |
| - ${{ runner.os }}-gems- |
76 |
| - |
77 |
| - - name: Make gems |
78 |
| - if: steps.restore-gems.outputs.cache-hit != 'true' |
79 |
| - run: make gems |
80 |
| - |
81 | 51 | - name: Generate podspec
|
82 | 52 | run: make generate-podspec
|
83 | 53 |
|
84 |
| - - name: Release on Github |
85 |
| - uses: softprops/action-gh-release@v1 |
| 54 | + - name: Create Release |
| 55 | + id: create_release |
| 56 | + uses: actions/create-release@v1 |
| 57 | + env: |
| 58 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
86 | 59 | with:
|
87 |
| - files: archived |
| 60 | + tag_name: ${{ github.ref }} |
| 61 | + release_name: Release ${{ github.ref }} |
| 62 | + draft: false |
| 63 | + prerelease: false |
| 64 | + |
| 65 | + - name: Upload Release Asset |
| 66 | + id: upload-release-asset |
| 67 | + uses: actions/upload-release-asset@v1 |
88 | 68 | env:
|
89 | 69 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
| 70 | + with: |
| 71 | + upload_url: ${{ steps.create_release.outputs.upload_url }} |
| 72 | + asset_path: ./fibs.zip |
| 73 | + asset_name: fibs.zip |
| 74 | + asset_content_type: application/zip |
90 | 75 |
|
91 | 76 | - name: Upload to Cocoapods
|
92 | 77 | env:
|
|
0 commit comments