Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit ffd5edb

Browse files
committed
add a deployment step
1 parent 9426827 commit ffd5edb

3 files changed

Lines changed: 31 additions & 10 deletions

File tree

config.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ before:
1717
# 5. PR: Workflows
1818
# 6. PR: Managing projects on GitHub
1919
# 7. PR: Measuring success
20-
# 8: Issue: Congratulations
20+
# 8: Issue: Publish your toolkit
2121

2222
steps:
2323

@@ -181,14 +181,25 @@ steps:
181181
event: pull_request.closed
182182
actions:
183183
- type: createIssue
184-
title: Congratulations
185-
body: congratulations.md
186-
action_id: congratulationsIssue
187-
data:
188-
learningPathURL: 'https://github-learning-lab-staging.herokuapp.com/githubtraining/paths/innersource:-theory-to-practice'
189-
forkURL: '%payload.repository.html_url%/fork'
190-
downloadURL: '%payload.repository.html_url%/archive/master.zip'
184+
title: Publish your toolkit
185+
body: publish.md
186+
action_id: publishIssue
191187
- type: respond
192188
with: goto-pr.md
193189
data:
194-
url: '%actions.congratulationsIssue.data.html_url%'
190+
url: '%actions.publishIssue.data.html_url%'
191+
192+
#14
193+
- title: Turn on GitHub Pages
194+
description: Turn on GitHub Pages
195+
link: '{{ repoUrl }}/pull/8'
196+
event: deployment
197+
actions:
198+
- type: respond
199+
issue: Publish your toolkit
200+
with: congratulations.md
201+
data:
202+
deploymentURL: 'https://%payload.repository.owner.login%/github.io/%payload.repository.name%'
203+
learningPathURL: 'https://github-learning-lab-staging.herokuapp.com/githubtraining/paths/innersource:-theory-to-practice'
204+
forkURL: '%payload.repository.html_url%/fork'
205+
downloadURL: '%payload.repository.html_url%/archive/master.zip'

responses/congratulations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# :tada: Congratulations
22

3-
You are finished with this course. You can see a deployed version of our work together at [LINK]. Feel free to share this link directly with others, or you can save the resources in one of the following ways.
3+
You are finished with this course. You can see a deployed version of our work together at [your new GitHub Pages site]({{ deploymentURL }}). Feel free to share this link directly with others, or you can save the resources in one of the following ways.
44

55
### Saving course resources
66

responses/publish.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
### Almost done!
2+
3+
It's now time to publish the innersource toolkit you've been working on throughout this course.
4+
5+
To publish:
6+
1. Go to the **Settings** tab for this repository.
7+
1. Scroll down to the section titled _GitHub Pages_
8+
1. Select **master branch** in the Source drop down.
9+
10+
That's all! GitHub Pages will then deploy your site and repo its status back to me. I'll respond when I detect that GitHub pages has finished deploying your site.

0 commit comments

Comments
 (0)