Skip to content

Update5 artifact.yml #8

Update5 artifact.yml

Update5 artifact.yml #8

Workflow file for this run

name: Workflow Demo
'on':
- push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create a text file
run: 'echo "Hello, world!" > hello.txt'
- name: Archive text file
uses: actions/upload-artifact@v2
with:
name: hello-artifact
path: hello.txt
download: #added
needs: build
runs-on: ubuntu-latest
steps:
- name: Download text file
uses: actions/download-artifact@v2
with:
name: hello-artifact
path: ./artifacts
- name: Display content of the text file
run: cat ./artifacts/hello.txt