Skip to content

Commit e0a66c8

Browse files
authored
Updated action versions in github workflows. Added code to deploy images to gh-pages branch. (#18)
* updated action versions in github workflows * updated action versions in github workflows * Added code to deploy images to gh-pages branch
1 parent 25bf42b commit e0a66c8

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

.github/workflows/codecommitWorkflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: actions/checkout@v2
2727
# Run Linter against code base
2828
- name: Lint code base
29-
uses: docker://github/super-linter:v3.3.2
29+
uses: docker://github/super-linter:v3
3030
env:
3131
VALIDATE_ALL_CODEBASE: true # will parse the entire repository and find all files to validate across all types. NOTE: When set to false, only new or edited files will be parsed for validation.
3232
DEFAULT_BRANCH: master

.github/workflows/pushtoMaster.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: actions/checkout@v2
2828
# Run Linter against code base
2929
- name: Lint code base
30-
uses: docker://github/super-linter:v3.3.2
30+
uses: docker://github/super-linter:v3
3131
env:
3232
VALIDATE_ALL_CODEBASE: true # will parse the entire repository and find all files to validate across all types. NOTE: When set to false, only new or edited files will be parsed for validation.
3333
DEFAULT_BRANCH: master
@@ -80,13 +80,13 @@ jobs:
8080
run: CI=test npm run test
8181
- name: Run test coverage report
8282
run: npm run coverage
83-
# - name: Build application
84-
# run: npm run build
85-
# - name: Deploy to gh-pages
86-
# uses: peaceiris/actions-gh-pages@v3
87-
# with:
88-
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
89-
# publish_dir: ./build
83+
- name: Build application
84+
run: npm run build
85+
- name: Deploy to gh-pages
86+
uses: peaceiris/actions-gh-pages@v3
87+
with:
88+
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
89+
publish_dir: ./build
9090
deploy-images:
9191
name: deploy-images
9292
needs: react-deployment
@@ -99,14 +99,14 @@ jobs:
9999
- name: Deploy Images
100100
shell: bash
101101
run: |
102-
echo "Following deployment of the gh-pages branch, need to fetching the images from the images folder of the master branch "
102+
echo "Following deployment of the gh-pages branch, need to fetch the images from the images folder of the master branch "
103103
echo " into the images folder of the gh-pages branch. This is done to facilitate sequence to sequence links."
104104
git branch -a
105-
#git checkout gh-pages
105+
git checkout gh-pages
106106
# checkout the images folder from the master branch
107107
# the -- parameter indicates do not interpret any more arguments as command options.
108108
# and stage the files
109-
#git checkout master -- images
109+
git checkout master -- images
110110
git status
111111
- name: Commit changes
112112
uses: EndBug/add-and-commit@v4
@@ -115,7 +115,7 @@ jobs:
115115
author_email: "tom_halpin@hotmail.com"
116116
message: "Deployed Images"
117117
add: "--all"
118-
#ref: "gh-pages" # commit is to gh-pages branch
118+
ref: "gh-pages" # commit is to gh-pages branch
119119
env:
120120
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121121

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/stale@v1
18+
- uses: actions/stale@v3
1919
with:
2020
repo-token: ${{ secrets.GITHUB_TOKEN }}
2121
stale-issue-message: 'This issue has been marked as Stale because it has been open for 14 days with no activity. Remove the stale label or comment on the issue, or it will be closed in 7 days.'

0 commit comments

Comments
 (0)