Skip to content

Commit

Permalink
Test enviornment var
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam committed May 16, 2024
1 parent f7c83f6 commit edce9f4
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions .github/workflows/action_deploy_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,35 @@ name: Deploy Binaries
on:
workflow_dispatch:
push:
branches:
- feature/setup-snapshot-deployments
- release-please--branches--develop--components--release-please-action
tags:
- v**

env:
is_snapshot: ${{ env.github.ref.type == "branch" }}

jobs:
deploy:
environment: production
runs-on: macos-14
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.1'
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Install dependencies
run: bundle install
# - uses: maxim-lobanov/setup-xcode@v1
# with:
# xcode-version: '15.0.1'
# - uses: actions/checkout@v3
# - uses: actions/setup-java@v3
# with:
# distribution: 'temurin' # See 'Supported distributions' for available options
# java-version: '17'
# gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
# - name: Install dependencies
# run: bundle install
- name: Deploy package to Maven Central
run: |
export GPG_TTY=$(tty)
bundle exec fastlane publish_to_maven
echo "Testing env var: $is_snapshot"
# export GPG_TTY=$(tty)
# bundle exec fastlane publish_to_maven
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
Expand Down

0 comments on commit edce9f4

Please sign in to comment.