-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: scoped down release-please.yml to only do gh release
- Loading branch information
Sunny Guduru
committed
Mar 7, 2024
1 parent
0102c9e
commit 11cfcd9
Showing
3 changed files
with
3 additions
and
87 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,6 @@ on: | |
- main | ||
|
||
jobs: | ||
go-versions: | ||
uses: ./.github/workflows/go-versions.yml | ||
|
||
release-please: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
|
@@ -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}} |
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