-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
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-bird "Hello Musu, I'm tweety-bird" >> tweety-bird.txt | ||
|
||
- name: Upload tweety-bird text file | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: tweety-bird-text-file | ||
path: tweety-bird.txt | ||
|
||
test_job_2: | ||
needs: build_job_1 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download tweety-bird text file | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: tweety-bird-text-file | ||
|
||
- name: Test File Exists | ||
run: grep -i "tweety-bird" tweety-bird.txt | ||
|
||
deploy_job_3: | ||
needs: [test_job_2] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download tweety-bird text file | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: tweety-bird-text-file | ||
|
||
- name: Read File | ||
run: cat tweety-bird.txt | ||
|
||
- name: Deploy | ||
run: echo Deploying ... .. . |