Skip to content

Commit 77d937f

Browse files
committed
ci: Fixing extra dots in the source with submodules artifacts
Fixing extra dots in the naming of artifacts since the variable for the extension contains it already. Signed-off-by: Tyler Erickson <[email protected]>
1 parent c4fbb1f commit 77d937f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/source-release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Create Source Archive
4949
run: |
5050
pip install git-archive-all
51-
git-archive-all --prefix=${{ env.ARCHIVENAME }} SourceCode_With_Submodules.${{ matrix.config.extension }}
51+
git-archive-all --prefix=${{ env.ARCHIVENAME }} SourceCode_With_Submodules${{ matrix.config.extension }}
5252
5353
- name: Generate Hashes
5454
shell: bash
@@ -61,19 +61,19 @@ jobs:
6161
# https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/generic/README.md#provenance-for-artifacts-built-across-multiple-operating-systems
6262
set -euo pipefail
6363
(sha256sum -t ${{ format('SourceCode_With_Submodules.{0}', matrix.config.extension) }} || shasum -a 256 ${{ format('SourceCode_With_Submodules.{0}', matrix.config.extension) }}) > checksum
64-
echo "hash-SourceCode_With_Submodules.${{ matrix.config.extension }}=$(base64 -w0 checksum || base64 checksum)" >> "${GITHUB_OUTPUT}"
64+
echo "hash-SourceCode_With_Submodules${{ matrix.config.extension }}=$(base64 -w0 checksum || base64 checksum)" >> "${GITHUB_OUTPUT}"
6565
6666
- name: Upload Source Archive as Artifact
6767
uses: actions/upload-artifact@v4
6868
with:
69-
name: SourceCode_With_Submodules.${{ matrix.config.extension }}
70-
path: SourceCode_With_Submodules.${{ matrix.config.extension }}
69+
name: SourceCode_With_Submodules${{ matrix.config.extension }}
70+
path: SourceCode_With_Submodules${{ matrix.config.extension }}
7171

7272
- name: Publish Source Archive to Release
7373
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
7474
uses: softprops/action-gh-release@v2
7575
with:
76-
files: SourceCode_With_Submodules.${{ matrix.config.extension }}
76+
files: SourceCode_With_Submodules${{ matrix.config.extension }}
7777

7878
# Generate the slsa provenance
7979
provenance:

0 commit comments

Comments
 (0)