mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +02:00
CI: Add SHA256 checksums to release
Fixes: #1578 Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
ce9910a3fb
commit
c2cd3cdf09
1 changed files with 23 additions and 3 deletions
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
|
@ -223,6 +223,11 @@ jobs:
|
||||||
tag_name: "v${{ env.RELEASE_VERSION }}"
|
tag_name: "v${{ env.RELEASE_VERSION }}"
|
||||||
files: archives/*
|
files: archives/*
|
||||||
|
|
||||||
|
- name: Create checksums from font packages
|
||||||
|
run: |
|
||||||
|
cd -- "$GITHUB_WORKSPACE/archives"
|
||||||
|
sha256sum * > SHA-256-${{ matrix.font }}.txt
|
||||||
|
|
||||||
- name: Upload patched fonts as artifacts
|
- name: Upload patched fonts as artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
@ -232,6 +237,7 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
LICENSE
|
LICENSE
|
||||||
patched-fonts/${{ matrix.font }}
|
patched-fonts/${{ matrix.font }}
|
||||||
|
archives/SHA*
|
||||||
|
|
||||||
release-font-patcher:
|
release-font-patcher:
|
||||||
name: Archive font patcher and add to release
|
name: Archive font patcher and add to release
|
||||||
|
@ -268,6 +274,9 @@ jobs:
|
||||||
commit:
|
commit:
|
||||||
name: Commit and push patched fonts to the repo, finalize release
|
name: Commit and push patched fonts to the repo, finalize release
|
||||||
needs: [ setup-fonts-matrix, build, release-font-patcher ]
|
needs: [ setup-fonts-matrix, build, release-font-patcher ]
|
||||||
|
env:
|
||||||
|
RELEASE_VERSION: ${{ needs.setup-fonts-matrix.outputs.rel_version }}
|
||||||
|
RELEASE_CANDIDATE: ${{ needs.setup-fonts-matrix.outputs.rel_candidate }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -284,10 +293,21 @@ jobs:
|
||||||
path: .
|
path: .
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
||||||
|
- name: Create complete checksums file
|
||||||
|
run: |
|
||||||
|
cd -- "$GITHUB_WORKSPACE/archives"
|
||||||
|
cat SHA-256-* | sort -k 2 > SHA-256.txt
|
||||||
|
|
||||||
|
- name: Upload checksums for release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
if: needs.setup-fonts-matrix.outputs.rel_upload == 'true'
|
||||||
|
with:
|
||||||
|
draft: true
|
||||||
|
prerelease: ${{ env.RELEASE_CANDIDATE != 'false' }}
|
||||||
|
tag_name: "v${{ env.RELEASE_VERSION }}"
|
||||||
|
files: archives/SHA-256.txt
|
||||||
|
|
||||||
- name: Bump version for source files
|
- name: Bump version for source files
|
||||||
env:
|
|
||||||
RELEASE_VERSION: ${{ needs.setup-fonts-matrix.outputs.rel_version }}
|
|
||||||
RELEASE_CANDIDATE: ${{ needs.setup-fonts-matrix.outputs.rel_candidate }}
|
|
||||||
run: |
|
run: |
|
||||||
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
||||||
./version-bump.sh "$RELEASE_VERSION"
|
./version-bump.sh "$RELEASE_VERSION"
|
||||||
|
|
Loading…
Reference in a new issue