Skip to content

Commit

Permalink
chore: move extract-changelog before build
Browse files Browse the repository at this point in the history
  • Loading branch information
blelump committed Jul 19, 2024
1 parent 43b1b20 commit e32f597
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Get tag
id: repository
run: echo "tag=$(git describe --tags HEAD)" > $GITHUB_ENV

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

Expand All @@ -28,7 +28,7 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
Expand All @@ -38,6 +38,13 @@ jobs:
tags: |
type=semver,pattern={{version}}
- name: extract-changelog
id: extract-changelog
uses: sean0x42/markdown-extract@v2
with:
file: CHANGELOG.md
pattern: ${{ github.ref_name }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
Expand All @@ -48,17 +55,11 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: extract-changelog
id: extract-changelog
uses: sean0x42/markdown-extract@v2
with:
file: CHANGELOG.md
pattern: ${{ github.ref_name }}


outputs:
img-tag: ${{ steps.meta.outputs.img-tag }}
changelog: ${{ steps.extract-changelog.outputs.markdown }}

release:
runs-on: ubuntu-latest
needs:
Expand Down

0 comments on commit e32f597

Please sign in to comment.