Skip to content

Update artifact.yml

Update artifact.yml #5

Workflow file for this run

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