tangled
alpha
login
or
join now
dunkirk.sh
/
herald
1
fork
atom
rss email digests over ssh because you're a cool kid
herald.dunkirk.sh
go
rss
rss-reader
ssh
charm
1
fork
atom
overview
issues
pulls
pipelines
fix: correct archive name capitalization
dunkirk.sh
2 months ago
1d8103de
af08d268
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+7
-3
1 changed file
expand all
collapse all
unified
split
.github
workflows
release.yml
+7
-3
.github/workflows/release.yml
···
74
74
-o ${BINARY_NAME} \
75
75
.
76
76
77
77
-
# Create archive
78
78
-
ARCHIVE_NAME="herald_$(echo ${{ matrix.goos }} | sed 's/.*/\u&/')_${{ matrix.goarch == 'amd64' && 'x86_64' || matrix.goarch }}"
77
77
+
# Create archive with proper capitalization
78
78
+
OS_CAPITALIZED="$(echo ${{ matrix.goos }} | awk '{print toupper(substr($0,1,1)) tolower(substr($0,2))}')"
79
79
+
ARCH_NAME="${{ matrix.goarch == 'amd64' && 'x86_64' || matrix.goarch }}"
80
80
+
ARCHIVE_NAME="herald_${OS_CAPITALIZED}_${ARCH_NAME}"
79
81
80
82
if [ "${{ matrix.goos }}" = "windows" ]; then
81
83
zip "${ARCHIVE_NAME}.zip" ${BINARY_NAME} LICENSE.md README.md config.example.yaml
···
87
89
env:
88
90
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89
91
run: |
90
90
-
ARCHIVE_NAME="herald_$(echo ${{ matrix.goos }} | sed 's/.*/\u&/')_${{ matrix.goarch == 'amd64' && 'x86_64' || matrix.goarch }}"
92
92
+
OS_CAPITALIZED="$(echo ${{ matrix.goos }} | awk '{print toupper(substr($0,1,1)) tolower(substr($0,2))}')"
93
93
+
ARCH_NAME="${{ matrix.goarch == 'amd64' && 'x86_64' || matrix.goarch }}"
94
94
+
ARCHIVE_NAME="herald_${OS_CAPITALIZED}_${ARCH_NAME}"
91
95
92
96
if [ "${{ matrix.goos }}" = "windows" ]; then
93
97
gh release upload ${{ github.ref_name }} "${ARCHIVE_NAME}.zip"