Skip to content

Commit

Permalink
feat: scoped down release-please.yml to only do gh release
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunny Guduru committed Mar 7, 2024
1 parent 0102c9e commit 11cfcd9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 87 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/go-versions.yml

This file was deleted.

37 changes: 1 addition & 36 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
- main

jobs:
go-versions:
uses: ./.github/workflows/go-versions.yml

release-please:
runs-on: ubuntu-latest
outputs:
Expand All @@ -18,36 +15,4 @@ jobs:
- uses: google-github-actions/release-please-action@v4
id: release
with:
token: ${{secrets.GITHUB_TOKEN}}

release-relay:
permissions:
id-token: write # Needed to obtain Docker tokens
contents: write # Needed to upload release artifacts

needs: [ release-please, go-versions ]
if: ${{ needs.release-please.outputs.release_created == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
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'

- name: Setup Go ${{ needs.go-versions.outputs.latest }}
uses: actions/setup-go@v4
with:
go-version: ${{ needs.go-versions.outputs.latest }}

# - uses: ./.github/actions/unit-tests

- uses: ./.github/actions/publish
with:
dry-run: 'true'
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ needs.release-please.outputs.tag_name }}
token: ${{secrets.GITHUB_TOKEN}}
4 changes: 2 additions & 2 deletions release-please-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"release-type": "go",
"bump-minor-pre-major": true,
"versioning": "default",
"bootstrap-sha": "0cf0540c8555b3b57b013ee1f4e7bf16ad486ab2",
"bootstrap-sha": "0102c9eec733b9c8c20f59108b54162e3262de0a",
"include-component-in-tag" : false,
"extra-files": [
"relay/version/version.go"
"version/version.go"
]
}
}
Expand Down

0 comments on commit 11cfcd9

Please sign in to comment.