Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
chore: adjust workflow
Browse files Browse the repository at this point in the history
Signed-off-by: uziasferreirazup <[email protected]>
  • Loading branch information
uziasferreirazup committed Sep 20, 2021
1 parent 13aadef commit 851c3ce
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 18 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,30 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/[email protected]
- name: Read secrets from AWS Secrets Manager into environment variables
uses: abhilash1in/[email protected]
with:
fetch-depth: '0'
ref: 'master'
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
secrets: |
beagle/core/*
parse-json: true
- name: Install Fastlane
run: bundle install
- name: Deploy new version
env:
REPO_TOKEN: ${{ secrets.REPO_TOKEN }}
NAME_REPO_TOKEN: ${{ secrets.NAME_REPO_TOKEN }}
SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
GPG_KEY_CONTENTS: ${{ secrets.GPG_KEY_CONTENTS }}
ORG_GRADLE_PROJECT_SIGNINGKEYID: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }}
ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
GITHUB_USER: ${{ secrets.NAME_REPO_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
REPO_TOKEN: ${{ env.BEAGLE_CORE_GITHUB_GITHUB_TOKEN }}
NAME_REPO_TOKEN: ${{ env.BEAGLE_CORE_GITHUB_GITHUB_USER }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ env.BEAGLE_CORE_ARTIFACT_SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ env.BEAGLE_CORE_ARTIFACT_SONATYPE_NEXUS_PASSWORD }}
GPG_KEY_CONTENTS: ${{ env.BEAGLE_CORE_ARTIFACT_GPG_KEY_CONTENTS }}
ORG_GRADLE_PROJECT_SIGNINGKEYID: ${{ env.BEAGLE_CORE_ARTIFACT_ORG_GRADLE_PROJECT_SIGNINGKEYID }}
ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{ env.BEAGLE_CORE_ARTIFACT_ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
GITHUB_USER: ${{ env.BEAGLE_CORE_GITHUB_GITHUB_USER }}
GITHUB_TOKEN: ${{ env.BEAGLE_CORE_GITHUB_GITHUB_TOKEN }}
COCOAPODS_TRUNK_TOKEN: ${{ env.BEAGLE_CORE_ARTIFACT_COCOAPODS_TRUNK_TOKEN }}
TAG_NAME: ${{ github.REF }}
REPO: ${{ github.repository }}
COMMITISH: ${{ github.after }}
run: bundle exec fastlane deploy
run: bundle exec fastlane deploy
9 changes: 4 additions & 5 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ platform :workflow do
create_pull_request(
api_token:ENV["REPO_TOKEN"],
repo:ENV["REPO"],
title:"fix: Merge #{branchName} patch with master",
body: "Auto generated PR to merge fixes from #{branchName} into master."
title:"fix: Merge #{branchName} patch with main",
body: "Auto generated PR to merge fixes from #{branchName} into main."
)
end
end
Expand Down Expand Up @@ -157,14 +157,13 @@ lane :deploy do
sh "fastlane ios release_pods version:#{versionNumber} tag:#{tagName}"
end

releaseNotes = release_notes(versionDeploy: tagName)
sh "bash ./delete_release.sh " + tagName
set_github_release(
repository_name: ENV["REPO"],
api_token: ENV["REPO_TOKEN"],
name: tagName,
tag_name: tagName,
description: releaseNotes,
description: tagName,
commitish: ENV["COMMITISH"]
)
end
Expand Down Expand Up @@ -326,4 +325,4 @@ lane :lastExpectedVersion do |params|
version = lastVersion
end
"#{version}"
end
end

0 comments on commit 851c3ce

Please sign in to comment.