Skip to content

Commit

Permalink
Update publish-mix-hex-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bryannaegele authored Feb 5, 2024
1 parent a57863a commit 889541b
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/publish-mix-hex-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,19 +184,17 @@ jobs:
if: ${{ needs.config.outputs.build_tool == 'mix' }}
working-directory: ${{ needs.config.outputs.working_directory }}
env:
HEX_ORG_KEY: ${{ secrets.OTEL_HEX_KEY }}
HEX_API_KEY: ${{ secrets.OTEL_HEX_KEY }}
run: |
mix hex.organization auth opentelemetry --key $HEX_ORG_KEY
mix deps.get
mix hex.publish --dry-run --yes
- name: "Rebar3 Hex Publish Dry-run"
if: ${{ needs.config.outputs.build_tool == 'rebar3' }}
working-directory: ${{ needs.config.outputs.working_directory }}
env:
HEX_ORG_KEY: ${{ secrets.OTEL_HEX_KEY }}
HEX_API_KEY: ${{ secrets.OTEL_HEX_KEY }}
run: |
rebar3 hex organization auth hexpm:opentelemetry -k $HEX_ORG_KEY
rebar3 update
rebar3 hex publish --dry-run --yes
Expand Down Expand Up @@ -233,9 +231,8 @@ jobs:
if: ${{ env.releasePrepped == 'true' && inputs.action == 'publish' && needs.config.outputs.build_tool == 'mix' }}
working-directory: ${{ needs.config.outputs.working_directory }}
env:
HEX_ORG_KEY: ${{ secrets.OTEL_HEX_KEY }}
HEX_API_KEY: ${{ secrets.OTEL_HEX_KEY }}
run: |
mix hex.organization auth opentelemetry --key $HEX_ORG_KEY
mix hex.publish --yes
echo "published=true" >> $GITHUB_ENV
Expand All @@ -244,9 +241,8 @@ jobs:
if: ${{ env.releasePrepped == 'true' && inputs.action == 'publish' && needs.config.outputs.build_tool == 'rebar3' }}
working-directory: ${{ needs.config.outputs.working_directory }}
env:
HEX_ORG_KEY: ${{ secrets.OTEL_HEX_KEY }}
HEX_API_KEY: ${{ secrets.OTEL_HEX_KEY }}
run: |
rebar3 hex organization auth hexpm:opentelemetry -k $HEX_ORG_KEY
rebar3 update
rebar3 hex publish --dry-run --yes
echo "published=true" >> $GITHUB_ENV
Expand All @@ -255,10 +251,8 @@ jobs:
if: ${{ env.releasePrepped == 'true' && inputs.action == 'publish' }}
working-directory: ${{ needs.config.outputs.working_directory }}
env:
HEX_ORG_KEY: ${{ secrets.OTEL_HEX_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sleep 5
mix hex.organization auth opentelemetry --key $HEX_ORG_KEY
mix hex.package fetch ${{ needs.config.outputs.package_name }} ${{ env.package_version }} --organization opentelemetry
gh release upload ${{ env.gh_release_tag_name}} ${{ needs.config.outputs.package_name }}-${{ env.package_version }}.tar

0 comments on commit 889541b

Please sign in to comment.