Skip to content

Commit

Permalink
Comment out jobs for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolson committed May 30, 2024
1 parent 3208b73 commit 0432eee
Showing 1 changed file with 64 additions and 64 deletions.
128 changes: 64 additions & 64 deletions .github/workflows/manual-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,71 +30,71 @@ jobs:
- run: echo "hello world"
- run: echo "job status is ${{ job.status }}."

release-ldcli:
permissions:
id-token: write # Needed to obtain Docker tokens
contents: write # Needed to upload release artifacts
runs-on: ubuntu-latest
outputs:
hashes: ${{ steps.publish.outputs.hashes }}
steps:
- uses: actions/checkout@v4
name: Checkout
with:
fetch-depth: 0
# release-ldcli:
# permissions:
# id-token: write # Needed to obtain Docker tokens
# contents: write # Needed to upload release artifacts
# runs-on: ubuntu-latest
# outputs:
# hashes: ${{ steps.publish.outputs.hashes }}
# steps:
# - uses: actions/checkout@v4
# name: Checkout
# with:
# fetch-depth: 0

- uses: launchdarkly/gh-actions/actions/[email protected]
name: 'Get Docker token'
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
ssm_parameter_pairs: '/global/services/docker/public/username = DOCKER_USERNAME, /global/services/docker/public/token = DOCKER_TOKEN'
# - uses: launchdarkly/gh-actions/actions/[email protected]
# name: 'Get Docker token'
# with:
# aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
# ssm_parameter_pairs: '/global/services/docker/public/username = DOCKER_USERNAME, /global/services/docker/public/token = DOCKER_TOKEN'

- uses: ./.github/actions/publish
id: publish
with:
dry-run: ${{ inputs.dry-run }}
token: ${{ secrets.GITHUB_TOKEN }}
homebrew-gh-secret: ${{secrets.HOMEBREW_DEPLOY_KEY}}
tag: ${{ inputs.tag }}
# - uses: ./.github/actions/publish
# id: publish
# with:
# dry-run: ${{ inputs.dry-run }}
# token: ${{ secrets.GITHUB_TOKEN }}
# homebrew-gh-secret: ${{secrets.HOMEBREW_DEPLOY_KEY}}
# tag: ${{ inputs.tag }}

release-ldcli-npm:
if: ${{ dry-run-npm == true }}
runs-on: ubuntu-latest
needs: ['release-ldcli']
permissions:
actions: read
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
name: Checkout
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- uses: launchdarkly/gh-actions/actions/[email protected]
name: 'Get NPM token'
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
ssm_parameter_pairs: '/production/common/releasing/npm/token = NODE_AUTH_TOKEN'
- id: publish-npm
name: Publish NPM Package
uses: ./.github/actions/publish-npm
with:
dry-run: ${{ inputs.dry-run }}
prerelease: ${{ inputs.prerelease }}
# release-ldcli-npm:
# if: ${{ dry-run-npm == true }}
# runs-on: ubuntu-latest
# needs: ['release-ldcli']
# permissions:
# actions: read
# id-token: write
# contents: write
# steps:
# - uses: actions/checkout@v4
# name: Checkout
# with:
# fetch-depth: 0
# - uses: actions/setup-node@v3
# with:
# node-version: 20.x
# registry-url: 'https://registry.npmjs.org'
# - uses: launchdarkly/gh-actions/actions/[email protected]
# name: 'Get NPM token'
# with:
# aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
# ssm_parameter_pairs: '/production/common/releasing/npm/token = NODE_AUTH_TOKEN'
# - id: publish-npm
# name: Publish NPM Package
# uses: ./.github/actions/publish-npm
# with:
# dry-run: ${{ inputs.dry-run }}
# prerelease: ${{ inputs.prerelease }}

release-ldcli-provenance:
needs: ['release-ldcli']
permissions:
actions: read
id-token: write
contents: write
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
with:
base64-subjects: "${{ needs.release-ldcli.outputs.hashes }}"
upload-assets: true
upload-tag-name: ${{ inputs.tag }}
provenance-name: ${{ format('ldcli_{0}_multiple_provenance.intoto.jsonl', inputs.tag) }}
# release-ldcli-provenance:
# needs: ['release-ldcli']
# permissions:
# actions: read
# id-token: write
# contents: write
# uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
# with:
# base64-subjects: "${{ needs.release-ldcli.outputs.hashes }}"
# upload-assets: true
# upload-tag-name: ${{ inputs.tag }}
# provenance-name: ${{ format('ldcli_{0}_multiple_provenance.intoto.jsonl', inputs.tag) }}

0 comments on commit 0432eee

Please sign in to comment.