Last active
April 27, 2021 23:50
-
-
Save magnetikonline/d0d4b1effa7a949bfe194ec6eb4ae758 to your computer and use it in GitHub Desktop.
Simple flow for passing artefacts between GitHub Actions workflow jobs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Workflow | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
first: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Make artifacts | |
run: | | |
mkdir -p dist/child | |
touch dist/my-file | |
touch dist/child/another-file | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
if-no-files-found: error | |
name: dist | |
path: dist/ | |
second: | |
needs: | |
- first | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v2 | |
- run: find . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment