Skip to content

Commit 5edccc6

Browse files
committed
store artifacts
1 parent b837ce8 commit 5edccc6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/build.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,27 @@ jobs:
2424
- name: List output files
2525
run: |
2626
ls -l
27+
- name: Upload Artifacts
28+
uses: actions/upload-artifact@v2
29+
with:
30+
name: openspool-esp32s2-${{ github.sha }}
31+
path: |
32+
openspool-esp32s2/*.bin
33+
openspool-esp32s2/manifest.json
34+
retention-days: 90
35+
- name: Store Latest Commit Indefinitely
36+
uses: actions/upload-artifact@v2
37+
with:
38+
name: openspool-esp32s2-latest
39+
path: |
40+
openspool-esp32s2/*.bin
41+
openspool-esp32s2/manifest.json
42+
43+
cleanup:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Delete old artifacts
47+
uses: c-hive/gha-remove-artifacts@v1
48+
with:
49+
age: '90 days'
50+
skip-recent: 5

0 commit comments

Comments
 (0)