|
| 1 | +# Workshop Setup |
| 2 | + |
| 3 | +| [← GitHub Actions: From CI to CD][walkthrough-previous] | [Next: Introduction & Your First Workflow →][walkthrough-next] | |
| 4 | +|:-----------------------------------|------------------------------------------:| |
| 5 | + |
| 6 | +To complete this workshop you will need to create a repository with a copy of the contents of this repository. While this can be done by [forking a repository][fork-repo], the goal of a fork is to eventually merge code back into the original (or upstream) source. In our case we want a separate copy as we don't intend to merge our changes. This is accomplished through the use of a [template repository][template-repo]. Template repositories are a great way to provide starters for your organization, ensuring consistency across projects. |
| 7 | + |
| 8 | +The repository for this workshop is configured as a template, so we can use it to create your repository. |
| 9 | + |
| 10 | +## Create your repository |
| 11 | + |
| 12 | +Let's create the repository you'll use for your workshop. |
| 13 | + |
| 14 | +1. Navigate to [the repository root][repo-root] |
| 15 | +2. Select **Use this template** > **Create a new repository** |
| 16 | + |
| 17 | +  |
| 18 | + |
| 19 | +3. Under **Owner**, select the name of your GitHub handle, or the owner specified by your workshop leader. |
| 20 | +4. Under **Repository**, set the name to **pets-workshop**, or the name specified by your workshop leader. |
| 21 | +5. Ensure **Public** is selected for the visibility, or the value indicated by your workshop leader. |
| 22 | +6. Select **Create repository from template**. |
| 23 | + |
| 24 | +  |
| 25 | + |
| 26 | +In a few moments a new repository will be created from the template for this workshop! |
| 27 | + |
| 28 | +## Open your codespace |
| 29 | + |
| 30 | +Now let's open a codespace so you have a development environment ready to go. |
| 31 | + |
| 32 | +1. Navigate to the main page of your newly created repository. |
| 33 | +2. Select **Code** > **Codespaces** > **Create codespace on main**. |
| 34 | + |
| 35 | + In a few moments a codespace will open in your browser with a full VS Code editor. This is where you'll create and edit files throughout the workshop. |
| 36 | + |
| 37 | +> [!TIP] |
| 38 | +> If your codespace ever disconnects or you close the tab, you can reopen it by navigating to your repository and selecting **Code** > **Codespaces** and the name of your codespace. |
| 39 | +
|
| 40 | +## Summary and next steps |
| 41 | + |
| 42 | +You've created the repository and opened a codespace — you're ready to start building! Next let's [create your first workflow][walkthrough-next]. |
| 43 | + |
| 44 | +| [← GitHub Actions: From CI to CD][walkthrough-previous] | [Next: Introduction & Your First Workflow →][walkthrough-next] | |
| 45 | +|:-----------------------------------|------------------------------------------:| |
| 46 | + |
| 47 | +[fork-repo]: https://docs.github.com/get-started/quickstart/fork-a-repo |
| 48 | +[template-repo]: https://docs.github.com/repositories/creating-and-managing-repositories/creating-a-template-repository |
| 49 | +[repo-root]: / |
| 50 | +[walkthrough-previous]: README.md |
| 51 | +[walkthrough-next]: 1-introduction.md |
0 commit comments