From 0989c008ab9d39d886494719ad69a5f2fe2e5252 Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Mon, 9 Mar 2020 22:09:06 -0500 Subject: [PATCH 01/10] Update pages.yml --- .github/workflows/pages.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 1d26a43..6a4d09d 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -50,8 +50,9 @@ jobs: else git push --quiet --force ${REMOTE} ${target_branch} fi - fi echo 🎉 Content of ${build_dir} has been deployed to GitHub Pages. + fi + From 82f03a9ebd6bc1b8cec69008664db029e3c7d1b8 Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Mon, 9 Mar 2020 22:10:40 -0500 Subject: [PATCH 02/10] Update pages.yml --- .github/workflows/pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 6a4d09d..de8e81b 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -28,7 +28,7 @@ jobs: git checkout --orphan gh-pages fi - echo "

hello there

stranger

" > index.html + echo "

hello there.

How are You?

" > index.html DIRTY=$(git status --short | wc -l) From c8fef74bc6e35074c8e7017816631e1800ff06d2 Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Mon, 9 Mar 2020 22:11:45 -0500 Subject: [PATCH 03/10] Update pages.yml --- .github/workflows/pages.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index de8e81b..e8dadc9 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -28,7 +28,7 @@ jobs: git checkout --orphan gh-pages fi - echo "

hello there.

How are You?

" > index.html + echo "

hello there.

How are you?

" > index.html DIRTY=$(git status --short | wc -l) @@ -36,7 +36,6 @@ jobs: then echo '⚠️ There are no changes to commit, stopping.' else - git log git config user.name ${COMMITER_NAME} git config user.email ${COMMITER_EMAIL} git add --all . From 5f5f6922251d32b6a9ff8190c857765b3f159b3a Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Mon, 9 Mar 2020 22:17:14 -0500 Subject: [PATCH 04/10] Update pages.yml --- .github/workflows/pages.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index e8dadc9..6d954b7 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -28,7 +28,7 @@ jobs: git checkout --orphan gh-pages fi - echo "

hello there.

How are you?

" > index.html + echo "

hello there.

How are you today?

" > index.html DIRTY=$(git status --short | wc -l) @@ -39,7 +39,7 @@ jobs: git config user.name ${COMMITER_NAME} git config user.email ${COMMITER_EMAIL} git add --all . - git commit -m "DIST to ${target_branch}" + git commit -m "DIST to ${target_branch}" --quiet echo 🏃 Deploying ${build_dir} directory to ${target_branch} branch on ${repo} repo From 055c6858132b2bbc31218ee6850d896191d34a3f Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Mon, 9 Mar 2020 22:22:43 -0500 Subject: [PATCH 05/10] Update pages.yml --- .github/workflows/pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 6d954b7..d719081 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -43,7 +43,7 @@ jobs: echo 🏃 Deploying ${build_dir} directory to ${target_branch} branch on ${repo} repo - if [ $keep_history == false] + if [ $keep_history = false] then git push --quiet ${REMOTE} ${target_branch} else From af64417ccff38d32f6fb668dbafd33e507d3f92c Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Mon, 9 Mar 2020 22:23:39 -0500 Subject: [PATCH 06/10] Update pages.yml --- .github/workflows/pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index d719081..9bf1ba3 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -28,7 +28,7 @@ jobs: git checkout --orphan gh-pages fi - echo "

hello there.

How are you today?

" > index.html + echo "

hello there.

How are you today kind person?

" > index.html DIRTY=$(git status --short | wc -l) From e75f2d96df2a8bffdb0496b73daa41c14714eee3 Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Sun, 22 Mar 2020 15:55:53 -0500 Subject: [PATCH 07/10] Update pages.yml --- .github/workflows/pages.yml | 51 +------------------------------------ 1 file changed, 1 insertion(+), 50 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 9bf1ba3..a5369bd 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -10,54 +10,5 @@ jobs: - uses: actions/checkout@v2 - name: push content run: | - REMOTE="https://${GITHUB_PAT}@github.com/${GITHUB_REPOSITORY}.git" - COMMITER_NAME="${GITHUB_ACTOR}-github-actions" - COMMITER_EMAIL="${GITHUB_ACTOR}-@users.noreply.github.com" - REMOTE_BRANCH_EXISTS=$(git ls-remote --heads ${REMOTE} ${target_branch} | wc -l) - - mkdir /tmp/github-pages - cd /tmp/github-pages - - if $keep_history && [ $REMOTE_BRANCH_EXISTS -ne 0 ] - then - git clone --quiet --branch ${target_branch} --depth 1 ${REMOTE} . - else - echo remote does not exist - echo initialize repo - git init . - git checkout --orphan gh-pages - fi - - echo "

hello there.

How are you today kind person?

" > index.html - - DIRTY=$(git status --short | wc -l) - - if $keep_history && [ $REMOTE_BRANCH_EXISTS -ne 0 ] && [ $DIRTY = 0 ] - then - echo '⚠️ There are no changes to commit, stopping.' - else - git config user.name ${COMMITER_NAME} - git config user.email ${COMMITER_EMAIL} - git add --all . - git commit -m "DIST to ${target_branch}" --quiet - - echo 🏃 Deploying ${build_dir} directory to ${target_branch} branch on ${repo} repo - - if [ $keep_history = false] - then - git push --quiet ${REMOTE} ${target_branch} - else - git push --quiet --force ${REMOTE} ${target_branch} - fi - echo 🎉 Content of ${build_dir} has been deployed to GitHub Pages. - fi - - - - - - env: - GITHUB_PAT: ${{ secrets.GITHUB_PAT }} - target_branch: gh-pages - keep_history: true + echo hi From bb76c07e6c6b9581c08026af5d6a0e17278c721f Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Sun, 22 Mar 2020 15:58:12 -0500 Subject: [PATCH 08/10] Update pages.yml --- .github/workflows/pages.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index a5369bd..af0adcf 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,3 +1,7 @@ +- env: &anchor + ANCHOR: "this is my anchor" + + name: CI on: push: @@ -8,7 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - env: + <<: *anchor - name: push content - run: | - echo hi + + run: | + echo ${{ env.ANCHOR }} From 17bb90e93517d2328e7db342580f17fb35d3b997 Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Sun, 22 Mar 2020 15:59:24 -0500 Subject: [PATCH 09/10] Update pages.yml --- .github/workflows/pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index af0adcf..3d4f904 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,5 +1,5 @@ - env: &anchor - ANCHOR: "this is my anchor" + ANCHOR: this is my anchor name: CI From 2e4e82e4f23b2a74c71b5d5cf85dcf15b4d2cede Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Sun, 22 Mar 2020 16:01:34 -0500 Subject: [PATCH 10/10] Update pages.yml --- .github/workflows/pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 3d4f904..9febc22 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,4 +1,4 @@ -- env: &anchor +env: &anchor ANCHOR: this is my anchor