Skip to content

Commit

Permalink
Merge pull request #181 from os-climate/temp-store-builds
Browse files Browse the repository at this point in the history
Feat: Add storage of temporary build artefacts for 14 days
  • Loading branch information
ModeSevenIndustrialSolutions authored Nov 23, 2023
2 parents 606ce9c + ac4878b commit c751b6b
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,33 @@ jobs:
git checkout "tags/v${{ steps.setenv.outputs.vernum }}"
grep version pyproject.toml
- name: "Build with TOX"
- name: "Build with TOX (PDM backend)"
run: |
mkdir metadata
tox -e build
- name: "Save dependency graph"
uses: GuillaumeFalourd/[email protected]
command_line: pdm list --graph
output_file_name: metadata/dependency-graph.txt
display_file_content: NO

- name: "Save file listing of build directory"
uses: GuillaumeFalourd/[email protected]
command_line: ls -al dist/*
output_file_name: metadata/dist-ls.txt
display_file_content: NO

- name: Store the build metadata
uses: actions/upload-artifact@v3
with:
name: ${{ github.ref_name }}
path: metadata/*
retention-days: 14

- name: Store the build artefacts
uses: actions/upload-artifact@v3
with:
name: ${{ github.ref_name }}
path: dist/
retention-days: 14

0 comments on commit c751b6b

Please sign in to comment.