Skip to content

Update1 artifact.yml #1

Update1 artifact.yml

Update1 artifact.yml #1

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:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: hello-artifact
- name: Create artifacts directory
run: mkdir -p ./artifacts
- name: Move artifact
run: mv hello.txt ./artifacts/hello.txt
- name: Display file content
run: cat ./artifacts/hello.txt