Skip to content

Commit 816bdf5

Browse files
Merge pull request #32 from Githubguy132010/dev
Voeg upload van ISO-artifact toe en verbeter datumvariabele in build Workflow
2 parents b8f05f3 + e76dd53 commit 816bdf5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/build.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,15 @@ jobs:
4343
run: |
4444
docker cp arch-container:/workdir/out/Arch.iso ${{ github.workspace }}/ || echo 'Failed to copy ISO to host.'
4545
46+
- name: Upload ISO Artifact
47+
uses: actions/upload-artifact@v3
48+
with:
49+
name: Arch.iso
50+
path: ${{ github.workspace }}/Arch.iso
51+
4652
- name: Get current date
4753
id: date
48-
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
54+
run: echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
4955

5056
# Create a release on GitHub using GITHUB_TOKEN
5157
- name: Create GitHub Release
@@ -54,10 +60,10 @@ jobs:
5460
env:
5561
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5662
with:
57-
tag_name: v${{ github.run_id }}-release
63+
tag_name: "v${{ github.run_id }}-release"
5864
release_name: "Arch Linux Release"
5965
body: |
60-
This release contains the Arch Linux ISO built on ${{ steps.date.outputs.date }}.
66+
This release contains the Arch Linux ISO built on ${{ env.DATE }}.
6167
draft: false
6268
prerelease: false
6369

0 commit comments

Comments
 (0)