summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yaml
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-08-29 17:55:53 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-08-29 17:55:53 -0400
commit7779cebdcd1aecbce92c660072c00064185a95f1 (patch)
tree2a1702ef77ee8c179cfc566cc1c547a61df1ca6e /.github/workflows/build.yaml
parent25efba151f98308a0e2d9af52a76173be3f8aa04 (diff)
SL-18837: Introduce flatten_files.py and use to post release assets
Diffstat (limited to '.github/workflows/build.yaml')
-rw-r--r--.github/workflows/build.yaml46
1 files changed, 26 insertions, 20 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 440681edb1..61a1215d07 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -244,16 +244,16 @@ jobs:
runs-on: ubuntu-latest
##if: github.ref_type == 'tag' && startsWith(github.ref_name, 'Second_Life_')
steps:
-## - name: Checkout code
-## uses: actions/checkout@v3
-## with:
-## ref: ${{ github.sha }}
-##
-## - name: Setup python
-## uses: actions/setup-python@v4
-## with:
-## python-version: "3.11"
-##
+ - name: Checkout code
+ uses: actions/checkout@v3
+ with:
+ ref: ${{ github.sha }}
+
+ - name: Setup python
+ uses: actions/setup-python@v4
+ with:
+ python-version: "3.11"
+
## - name: Install PyGithub
## run: pip3 install PyGithub
##
@@ -263,17 +263,23 @@ jobs:
## run: .github/workflows/post_artifacts.py
- uses: actions/download-artifact@v3
+ with:
+ path: artifacts
- name: Show what we downloaded
run: ls -R
-## # forked from softprops/action-gh-release
-## - uses: secondlife-3p/action-gh-release@v1
-## with:
-## prerelease: true
-## generate_release_notes: true
-## # the only reason we generate a GH release is to post build products
-## fail_on_unmatched_files: true
-## files: |
-## ${{ needs.build.outputs.installer }}
-## ${{ needs.build.outputs.metadata }}
+ - name: Make output dir
+ run: mkdir assets
+
+ - name: Reshuffle artifact files
+ run: .github/workflows/flatten_files.py assets artifacts
+
+ # forked from softprops/action-gh-release
+ - uses: secondlife-3p/action-gh-release@v1
+ with:
+ prerelease: true
+ generate_release_notes: true
+ # the only reason we generate a GH release is to post build products
+ fail_on_unmatched_files: true
+ files: "assets/*"