45 lines
1 KiB
YAML
45 lines
1 KiB
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- nate/test-yaml
|
|
|
|
jobs:
|
|
upload:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Create a build artifact
|
|
run: mkdir text && echo "Hello, world!" > text/hello-ubuntu.txt
|
|
|
|
- name: Upload both artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ubuntu-text
|
|
path: "text/*.txt"
|
|
|
|
upload2:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Create a build artifact
|
|
run: mkdir text && echo "Hello, world!" > text/hello-mac.txt
|
|
|
|
- name: Upload both artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: macos-text
|
|
path: "text/*.txt"
|
|
|
|
download:
|
|
needs: [upload, upload2]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Download artifacts
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
pattern: "*-text"
|
|
path: artifacts-destination
|
|
merge-multiple: true
|
|
|
|
- name: List artifacts
|
|
run: ls && echo "---" && ls artifacts-destination
|