Skip to content

Commit d47ce51

Browse files
Create automate-website-updates.yml
1 parent 081ccb4 commit d47ce51

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#This workflow automatically updates my go/docker clonable repo page everytime I update my README.md with additional work completed that I want to showcase.
2+
#This is the name of the workflow - used under the Actions tab
3+
name: Deploy go-docker-githubactions-pipeline README.md updates to GitHub pages website
4+
#This is workflow name - will appear in the list of workflow runs
5+
run-name: Go Pipeline
6+
#Trigger for the workflow - in otherwords, what causes the workflow to kick off
7+
on:
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- 'README.md'
13+
#Groups all jobs associated with this workflow together
14+
jobs:
15+
build:
16+
#Specifies the type of VM to create and what OS it runs
17+
runs-on: ubuntu-latest
18+
#Steps involved with the jobs the workflow runs
19+
steps:
20+
#Step1 - Checks out the repo and clones to the VM
21+
- name: Checkout Repository
22+
#Most recent version of actions/checkout - checksout repo to the runner
23+
uses: actions/checkout@v5
24+
25+
#Step2 - Updates content of main page using the peaceiris tool
26+
- name: Deploy from README.md
27+
uses: peaceiris/actions-gh-pages@v3
28+
#Configuration variables needed for the job to run
29+
with:
30+
#Temp authentication token needed for the job to run
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
#Source destination - root
33+
publish_dir: '.'
34+
#Target destination - root
35+
destination_dir: ''

0 commit comments

Comments
 (0)