|
1 | 1 | name: Publish release |
2 | 2 | on: workflow_dispatch |
3 | 3 | env: |
4 | | - XCODE_VERSION: "['16.3', '16.4', '26']" |
5 | | - TEST_XCODE_VERSION: '16.4' |
| 4 | + XCODE_VERSION: "['16.3', '16.4', '26.0.1']" |
| 5 | + TEST_XCODE_VERSION: '26.0.1' |
6 | 6 | jobs: |
7 | 7 | prepare: |
8 | 8 | runs-on: ubuntu-latest |
|
32 | 32 | tag: "v${{ needs.prepare.outputs.VERSION }}" |
33 | 33 | tag_exists_error: false |
34 | 34 | message: "" |
35 | | - publish-docs: |
36 | | - runs-on: macos-15 |
37 | | - name: Publish docs to S3 Bucket |
38 | | - needs: tag-release |
39 | | - env: |
40 | | - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_DOCS_ACCESS_KEY }} |
41 | | - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_DOCS_SECRET_ACCESS_KEY }} |
42 | | - GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
43 | | - steps: |
44 | | - - uses: actions/checkout@v4 |
45 | | - - uses: ruby/setup-ruby@v1 |
46 | | - with: |
47 | | - bundler-cache: true |
48 | | - - run: brew install s3cmd |
49 | | - - name: Publish docs |
50 | | - run: bundle exec sh -x build.sh publish-docs ${{ github.sha }} |
51 | 35 | create-release: |
52 | 36 | runs-on: macos-15 |
53 | 37 | name: Create github release |
@@ -145,41 +129,3 @@ jobs: |
145 | 129 | max_attempts: 10 |
146 | 130 | retry_wait_seconds: 60 |
147 | 131 | retry_on: error |
148 | | - post-slack-release: |
149 | | - runs-on: macos-15 |
150 | | - name: Publish to release Slack channel |
151 | | - needs: [create-release, prepare, publish-cocoapods, update-checker, publish-docs] |
152 | | - env: |
153 | | - WEBHOOK_URL: ${{ secrets.SLACK_RELEASES_WEBHOOK }} |
154 | | - steps: |
155 | | - - uses: actions/checkout@v4 |
156 | | - - uses: ruby/setup-ruby@v1 |
157 | | - with: |
158 | | - bundler-cache: true |
159 | | - - name: Prepare Changelog |
160 | | - run: bundle exec ./build.sh prepare-publish-changelog |
161 | | - - name: 'Post to #realm-releases' |
162 | | - uses: realm/ci-actions/release-to-slack@a2191a6cbf2f5b50aa71026dd068582dbd5016cc |
163 | | - with: |
164 | | - changelog: ExtractedChangelog/CHANGELOG.md |
165 | | - sdk: Swift |
166 | | - webhook-url: ${{ env.WEBHOOK_URL }} |
167 | | - version: ${{ needs.prepare.outputs.VERSION }} |
168 | | - add-empty-changelog: |
169 | | - runs-on: macos-15 |
170 | | - permissions: |
171 | | - contents: write |
172 | | - name: Add empty changelog and commits/push it |
173 | | - needs: [post-slack-release] |
174 | | - env: |
175 | | - GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
176 | | - steps: |
177 | | - - uses: actions/checkout@v4 |
178 | | - - name: Add template to changelog |
179 | | - run: | |
180 | | - sh build.sh add-empty-changelog |
181 | | - - name: Auto-commit CHANGELOG.md |
182 | | - uses: stefanzweifel/git-auto-commit-action@v4 |
183 | | - with: |
184 | | - file_pattern: 'CHANGELOG.md' |
185 | | - commit_message: 'Add an empty changelog section' |
0 commit comments