Skip to content

Commit

Permalink
Add license file to build (#65)
Browse files Browse the repository at this point in the history
<!-- LIST CHANGES HERE -->
  • Loading branch information
norwd authored Jan 10, 2025
2 parents e59c3bd + db72512 commit ad2101d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ jobs:
MEDIA_TYPE_HEADER: "Accept: application/vnd.github.raw"
AUTH_TOKEN_HEADER: "Authorization: Bearer ${{ github.token }}"

- name: "Retrieve License"
run: curl --header "${MEDIA_TYPE_HEADER}" --header "${AUTH_TOKEN_HEADER}" --create-dirs --output license.md "${CONTENTS_ENDPOINT}/LICENSE.md"
env:
CONTENTS_ENDPOINT: '${{ github.api_url }}/repos/${{ github.repository_owner }}/.github/contents'
MEDIA_TYPE_HEADER: "Accept: application/vnd.github.raw"
AUTH_TOKEN_HEADER: "Authorization: Bearer ${{ github.token }}"

- id: latest-release
name: "Get Details of Latest Release"
run: gh release view --json "${JQ_PROPS}" --jq "${JQ_QUERY}" | tee -a "${GITHUB_OUTPUT}"
Expand Down

0 comments on commit ad2101d

Please sign in to comment.