Skip to content

Commit

Permalink
for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ruisebas committed Apr 23, 2024
1 parent b0d248b commit 5541a7a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/release_authenticator.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release Authenticator
on:
push:
branches: [ release ]
branches: [ dev ]

permissions:
id-token: write
Expand All @@ -15,37 +15,37 @@ jobs:
identifier: 'workflow-call-unit-test'

release:
environment: Release
#environment: Release
name: Release new Authenticator version
needs: [unit-tests]
#needs: [unit-tests]
runs-on: macos-latest
env:
GITHUB_EMAIL: [email protected]
GITHUB_USER: aws-amplify-ops
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@8c3f20df09ac63af7b3ae3d7c91f105f857d8497 #v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-session-name: ${{ format('{0}.release', github.run_id) }}
aws-region: ${{ secrets.AWS_REGION }}
mask-aws-account-id: true
# - name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@8c3f20df09ac63af7b3ae3d7c91f105f857d8497 #v4
# with:
# role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
# role-session-name: ${{ format('{0}.release', github.run_id) }}
# aws-region: ${{ secrets.AWS_REGION }}
# mask-aws-account-id: true

- id: retrieve-token
name: Retrieve Token
env:
DEPLOY_SECRET_ARN: ${{ secrets.DEPLOY_SECRET_ARN }}
run: |
PAT=$(aws secretsmanager get-secret-value \
--secret-id "$DEPLOY_SECRET_ARN" \
| jq -r ".SecretString | fromjson | .Credential")
echo "token=$PAT" >> $GITHUB_OUTPUT
# - id: retrieve-token
# name: Retrieve Token
# env:
# DEPLOY_SECRET_ARN: ${{ secrets.DEPLOY_SECRET_ARN }}
# run: |
# PAT=$(aws secretsmanager get-secret-value \
# --secret-id "$DEPLOY_SECRET_ARN" \
# | jq -r ".SecretString | fromjson | .Credential")
# echo "token=$PAT" >> $GITHUB_OUTPUT

- name: Checkout repo
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
fetch-depth: 10
token: ${{steps.retrieve-token.outputs.token}}
# token: ${{steps.retrieve-token.outputs.token}}

- name: Setup Ruby
uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0
Expand Down
8 changes: 4 additions & 4 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ platform :swift do
sh('git', 'commit', '-am', commit_message)

# push to origin
sh('git', 'push', 'origin', 'release')
sh('git', 'push', 'origin', 'release:main')
sh('git', 'push', 'origin', 'dev')
#sh('git', 'push', 'origin', 'release:main')
end

desc "Tag in git and push to GitHub"
private_lane :add_tag do |options|
next_version = options[:version]
next_tag = "#{next_version}"

add_git_tag(tag: next_tag)
push_git_tags(tag: next_tag)
#add_git_tag(tag: next_tag)
#push_git_tags(tag: next_tag)
end
end

0 comments on commit 5541a7a

Please sign in to comment.