Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Cluster <[email protected]>
  • Loading branch information
ClusterM committed Dec 11, 2024
1 parent 466e56a commit 3fcae91
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
tar -czvf ../${{ env.APP_NAME }}.tar.gz *
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.APP_NAME }}
path: ${{ env.OUT_DIR }}
Expand All @@ -55,9 +55,15 @@ jobs:
- name: Download artifacts
uses: actions/[email protected]

- name: Debug print
run: find .

- name: Move files to the root
run: find -mindepth 2 -exec mv {} . \;

- name: Debug print
run: find .

- name: Calculate and save MD5 for each file
run: |
for file in *; do
Expand All @@ -66,6 +72,9 @@ jobs:
fi
done
- name: Debug print
run: find .

- name: Generate index.html
run: |
echo "<html><head><title>FDSKey</title></head><meta http-equiv='Cache-Control' content='no-cache, no-store, must-revalidate'/>" > index.html
Expand All @@ -76,6 +85,9 @@ jobs:
echo "Bootloader (.elf): <a href='bootloader.elf'>bootloader.elf</a><br/><small>(MD5: <a href='bootloader.elf.md5'>`cat bootloader.elf.md5`</a>)</small></br>Use this file to write the bootloader using programmer.<br/><br/>" >> index.html
echo "</body></html>" >> index.html
- name: Debug print
run: find .

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
Expand Down

0 comments on commit 3fcae91

Please sign in to comment.