Skip to content

Commit

Permalink
render changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mpfz0r committed Dec 12, 2023
1 parent ac61652 commit ef1b0dd
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/pr-and-release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,26 +82,27 @@ jobs:
dist/pkg
- name: Chocolatey Push
# publish release if tags are pushed
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/') # if tags are pushed, build and publish release
uses: ./.github/shared/docker-chocolatey
with:
command: make push-chocolatey
env:
CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }}

- name: "Upload sidecar artifacts to S3"
# publish release if tags are pushed
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/') # if tags are pushed, build and publish release
env:
AWS_DEFAULT_REGION: "eu-west-1"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_SIDECAR_RELEASES_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SIDECAR_RELEASES_SECRET_KEY }}
run: |
aws s3 cp --no-progress --recursive dist/pkg s3://graylog2-releases/graylog-collector-sidecar/${{ github.ref_name }}/
- name: "Render changelog"
if: startsWith(github.ref, 'refs/tags/') # if tags are pushed, build and publish release
run: graylog-project changelog render --skip-header changelog/${{ github.ref_name }} > ${{ runner.temp }}/changelog.md

- name: "Releasing to Github"
# publish release if tags are pushed
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/') # if tags are pushed, build and publish release
run: |
gh release create ${{ github.ref_name }} --draft --notes "Insert changes here." dist/pkg/*
gh release create ${{ github.ref_name }} --draft -F ${{ runner.temp }}/changelog.md dist/pkg/*

0 comments on commit ef1b0dd

Please sign in to comment.