Manual Publish Package #6
Workflow file for this run
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
name: Manual Publish Package | |
on: | |
workflow_dispatch: | |
inputs: | |
prerelease: | |
description: 'Is this a prerelease.' # use this to control publish tag, for instance NPM wouldn't set latest. | |
type: boolean | |
required: true | |
dry_run: | |
description: 'Is this a dry run. If so no package will be published.' | |
type: boolean | |
required: true | |
jobs: | |
manual-build-publish: | |
runs-on: ubuntu-22.04 | |
# Needed to get tokens during publishing. | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: erlef/setup-beam@v1 | |
with: | |
version-type: loose | |
otp-version: 25.x | |
rebar3-version: 3.18.0 | |
- uses: actions/checkout@v3 | |
- id: build-and-test | |
# Build using the same steps from CI. | |
name: Build and Test | |
uses: ./.github/actions/ci | |
- uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.0.0 | |
name: 'Get the hex publishing token' | |
with: | |
aws_assume_role: ${{ vars.AWS_ROLE_ARN }} | |
ssm_parameter_pairs: '/production/common/releasing/hex/api_key = HEX_AUTH_TOKEN' | |
- id: publish | |
name: Publish Package | |
uses: ./.github/actions/publish | |
with: | |
token: ${{ env.HEX_AUTH_TOKEN }} | |
prerelease: ${{ inputs.prerelease }} | |
dry_run: ${{ inputs.dry_run }} |