add action to append date to artifact name during upload

This commit is contained in:
Tim Yuen 2022-09-12 14:57:51 -04:00
parent be48eadbc6
commit 822e9e7753
2 changed files with 35 additions and 7 deletions

View file

@ -34,11 +34,10 @@ jobs:
cp -r models ${{ env.dist-path }}
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: ./.github/actions/upload-dated-artifact
with:
name: windows-latest
name: windows
path: dist # Add the parent directory to prevent a tarbomb
if-no-files-found: error
# Files must be packed into a tar in order for file permissions to be preserved
build-unix:
@ -48,7 +47,11 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
include:
- name: linux
os: ubuntu-latest
- name: mac
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Pull OpenSeeFace
@ -78,8 +81,7 @@ jobs:
run: tar -cvf ${{ env.tar-path }} ${{ env.artifact-path }}
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: ./.github/actions/upload-dated-artifact
with:
name: ${{ matrix.os }}
name: ${{ matrix.name }}
path: ${{ env.tar-path }}
if-no-files-found: error