Skip to content

Commit a0b3b1f

Browse files
committed
test
Signed-off-by: luke <luke.parkin@arm.com>
1 parent 7d16735 commit a0b3b1f

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Test Artifactory Upload
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
actions: read
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
outputs:
14+
version: ${{ steps.version.outputs.version }}
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set version
19+
id: version
20+
run: echo "version=0.0.1-test-$(date +%Y%m%d%H%M%S)" >> $GITHUB_OUTPUT
21+
22+
- name: Create test file
23+
run: |
24+
mkdir -p dist/test_linux_amd64
25+
echo "test artifact contents" > dist/test_linux_amd64/test-binary
26+
chmod +x dist/test_linux_amd64/test-binary
27+
28+
- name: Upload test artifact
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: test-v${{ steps.version.outputs.version }}-linux
32+
path: dist/test_linux_amd64
33+
if-no-files-found: error
34+
35+
upload:
36+
needs: build
37+
uses: Arm-debug/signer/.github/workflows/archive-and-upload-to-artifactory.yml@test-public-repo-upload
38+
with:
39+
run-id: ${{ github.run_id }}
40+
archive-name: test-v${{ needs.build.outputs.version }}-linux
41+
release-version: ${{ needs.build.outputs.version }}
42+
repo-name: remoteproc-runtime-example-zephyr
43+
org-name: Arm
44+
artifactory-path: linux
45+
artifactory-uploadables: test_linux_amd64
46+
archive-format: tar.gz
47+
executables: "*/test-binary"
48+
49+
summary:
50+
needs: upload
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Output artifact URLs
54+
run: |
55+
echo "## Artifactory URLs" >> $GITHUB_STEP_SUMMARY
56+
echo "### Linux" >> $GITHUB_STEP_SUMMARY
57+
echo "${{ needs.upload.outputs.artifact-urls }}" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)