-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GitHub] Add Release workflow to publish binaries
We cannot reuse worklow jobs on GA, worth subscribing: actions/runner#438 JIRA: EE-1157
- Loading branch information
Showing
3 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: [ '*' ] | ||
|
||
jobs: | ||
test-and-release: | ||
# Clone of main test workflow | ||
runs-on: macos-10.15 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Ruby setup | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.6 | ||
|
||
- name: Bundle cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
- name: Bundle install | ||
run: | | ||
gem install bundler | ||
bundle config path vendor/bundle | ||
bundle install --jobs 4 --retry 3 | ||
- name: Cocoapods cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: Pods | ||
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pods- | ||
- name: Cocoapods install | ||
run: | | ||
bundle exec fastlane run cocoapods | ||
- name: Java setup | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: '11' | ||
- name: WireMock setup | ||
run: | | ||
curl https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-jre8-standalone/2.27.0/wiremock-jre8-standalone-2.27.0.jar -o wiremock.jar -s | ||
bundle exec iostrust add ./wiremock/cert/wiremock.crt | ||
java -jar wiremock.jar --https-port 9099 --root-dir wiremock --https-keystore wiremock/cert/wiremock.jks --keystore-password password --verbose & | ||
- name: Test | ||
run: | | ||
bundle exec fastlane test | ||
# Publish additional steps to test job | ||
- name: Archive | ||
run: | | ||
./scripts/archive.sh | ||
- name: Generate Changelog | ||
run: | | ||
bundle exec fastlane last_changelog | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: build/output/*.zip | ||
body_path: last-changelog.md | ||
prerelease: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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