second art second commit #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 tweety "Hello Musu, I'm tweety" >> tweety.txt | |
- name: Upload tweety text file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: tweety-text-file | |
path: tweety.txt | |
test_job_2: | |
needs: build_job_1 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download tweety text file | |
uses: actions/download-artifact@v3 | |
with: | |
name: tweety-text-file | |
- name: Test File Exists | |
run: grep -i "tweety" tweety.txt | |
deploy_job_3: | |
needs: [test_job_2] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download tweety text file | |
uses: actions/download-artifact@v3 | |
with: | |
name: tweety-text-file | |
- name: Read File | |
run: cat tweety.txt | |
- name: Deploy | |
run: echo Deploying ... .. . |