Skip to content

Update Artifacts action version #2

Update Artifacts action version

Update Artifacts action version #2

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