Skip to content

Update workflow

Update workflow #3

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:
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