Skip to content

second art third commit #4

second art third commit

second art third commit #4

name: My First ASCII Artwork
on:
push
jobs:
build_job_1:
runs-on: ubuntu-latest
steps:
- name: Install Cowsay Program
run: sudo apt-get install cowsay -y
- name: Execute Cowsay CMD
run: cowsay -f dragon "Hello American Dragon- Jake Long" >> dragon.txt
- name: Upload Dragon text file
uses: actions/upload-artifact@v3
with:
name: dragon-text-file
path: dragon.txt
test_job_2:
needs: build_job_1
runs-on: ubuntu-latest
steps:
- name: Download Dragon text file
uses: actions/download-artifact@v3
with:
name: dragon-text-file
- name: Test File Exists
run: grep -i "dragon" dragon.txt
deploy_job_3:
needs: [test_job_2]
runs-on: ubuntu-latest
steps:
- name: Download Dragon text file
uses: actions/download-artifact@v3
with:
name: dragon-text-file
- name: Read File
run: cat dragon.txt
- name: Deploy
run: echo Deploying ... .. .