Skip to content

download path is added #4

download path is added

download path is added #4

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@v4
with:
name: hello-artifact
path: hello.txt
download:
needs: build
runs-on: ubuntu-latest
steps:
- name: Unarchieve the hello text file
uses: actions/download-artifact@v4
with:
name: hello-artifact
path: ./artifacts
- name: Read the content
run: cat ./artifacts/hello.txt