-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
384 additions
and
1 deletion.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
This is a Home page. | ||
Welcome to the Github-profile-summary-cards wiki! | ||
|
||
|
||
|
||
|
||
Follow the tutorial [here](/Tutorial.md). <br> | ||
Full resolution variants of gifs used in the tutorial are [here](/Videos.md). <br> | ||
Explore the Legacy version [here](/Tutorial_legacy.md). <br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,202 @@ | ||
# Let's get started! | ||
This tutorial will help you deploy Github-profile-summary-cards with ease. </br> | ||
If you have any issues regarding the gifs, you can find high res video verions [Here.](/Videos.md) | ||
|
||
### Table of Contents | ||
1. [Generate token](#generate-token) | ||
2. [Select a repo](#select-a-repo) | ||
|
||
- [Create a new repo](#new-repo) | ||
- [Add to existing repo (Recommended ⭐)](#existing-repo) | ||
3. [Create a workflow](#create-a-workflow) | ||
- [Additional information](#additional-information) | ||
4. [Edit workflow file](#edit-workflow-file) | ||
5. [Run the workflow](#run-the-workflow) | ||
6. [Final Step](#final-step) | ||
7. [The end](#the-end) | ||
|
||
|
||
# Generate token | ||
|
||
1. Navigate to your profile's Settings -> Developer setting -> Personal access tokens -> Generate new token | ||
|
||
|
||
|
||
2. Name your token | ||
(I'd recommend naming it something after `profile-summary-cards-token`) and ticking these boxes: | ||
|
||
|
||
<p align="center"> <img src="./assets_new/gen_user_pac.gif" alt="animated"> </p> | ||
|
||
3. And copy your token (**and don't lose it! You'd have to generate a new token**) | ||
|
||
|
||
<!-- | ||
repo | ||
- repo:status | ||
- repo_deployment | ||
- public_repo | ||
user | ||
- read:user | ||
- user:email | ||
--> | ||
|
||
# Select a repo | ||
|
||
- If you want to add to an already EXISTING repository. [Click here](#existing-repo) | ||
- (E.g. If you already have a README that shows up on your profile) | ||
- If you want to create a brand NEW repository. [Click here](#new-repo) | ||
|
||
|
||
### New repo | ||
To Create a new repo from a template: | ||
1. Go to [Template link](https://github.com/vn7n24fzkq/github-profile-summary-cards-example) | ||
2. Click on the "Use this template" button in the top right corner | ||
3. Select "Create a new template" | ||
|
||
<p align="center"> <img src="./assets_new/make_rep_f_tmp.gif" alt="animated"> </p> | ||
|
||
4. Name the repo as your username <br> (E.g. `FunnyUsername/FunnyUsername`, this popup should appear if you've done it correctly) | ||
<p align="left"> <img src="./assets_new/special_repo.png" alt="animated"> </p> | ||
5. You can ignore the next sub-step. | ||
|
||
|
||
|
||
### Existing repo | ||
--- | ||
1. Add a README.md file **[if you dont have that file already]** | ||
|
||
2. Rename your repo to your username (E.g. `FunnyUsername/FunnyUsername`) **[if you havent already]** <br> | ||
<p align="left"> <img src="./assets_new/special_repo.png" alt="animated"> </p> | ||
3. That's pretty much all. lets continue | ||
|
||
|
||
# Create a workflow | ||
|
||
Now we will add a workflow to automatically update the summary cards. | ||
|
||
1. Navigate to the repo's Actions -> New workflow -> Set up workflow yourself | ||
2. Name your new workflow (I'd recommend naming it something after `profile-summary-cards`) | ||
* **Make sure you put `.yml` at the end!** | ||
|
||
<p align="center"> <img src="./assets_new/create_n_wrkflw.gif" alt="animated"> </p> | ||
|
||
4. **Commit changes!** | ||
|
||
Code snippet: | ||
```name: GitHub-Profile-Summary-Cards | ||
on: | ||
create: | ||
schedule: # execute every 24 hours | ||
- cron: "* */24 * * *" | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: generate-github-cards | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: vn7n24fzkq/github-profile-summary-cards@release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.[YOUR_SECRET_TOKEN_NAME] }} | ||
with: | ||
USERNAME: ${{ github.repository_owner }} | ||
``` | ||
|
||
## Additional information | ||
|
||
>Please note that the workflow in it's current configuration will run every 24h (it will update every 24h) if you want to change it here is a ``cron's job definition`` | ||
```# .---------------- minute (0 - 59) | ||
# | .------------- hour (0 - 23) | ||
# | | .---------- day of month (1 - 31) | ||
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ... | ||
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR | ||
# | | | | | sun,mon,tue,wed,thu,fri,sat | ||
# | | | | | | ||
# * * * * * | ||
``` | ||
|
||
So let's say you want it to run every 15 hours: <br> | ||
`- cron: "* */15 * * *"` | ||
|
||
Or for example you want it to run every friday at 12:35pm: <br> | ||
`- cron: "35 12 * * fri"` | ||
|
||
# Create a Secret for Token | ||
|
||
1. Navigate to repo's Settings -> Secrets and variables -> Actions -> Repository secrets -> New repository secret | ||
|
||
2. Name your secret (again, I'd suggest naming your secret as `summary_card_token` or similar) | ||
|
||
3. Past in your **Personal access token**. | ||
- in case you've lost it. Please go back to [Generate token](#generate-token) and get a new one. | ||
|
||
4. **Copy that New secret's name!** | ||
|
||
|
||
<p align="center"> <img src="./assets_new/make_n_scrt.gif" alt="animated"> </p> | ||
|
||
# Edit workflow file | ||
Now that we have obtained the Secret, we can move on the last step before deployment 🎉 | ||
|
||
1. Navigate back to Code -> .github -> workflows -> `profile-summary-cards.yml` *(or customized name you gave to the .yml file)* | ||
|
||
2. Hit the pencil icon on the right side of your screen | ||
|
||
3. Edit the `[YOUR_SECRET_TOKEN_NAME]` inside the `GITHUB_TOKEN: ${{ secrets.[YOUR_SECRET_TOKEN_NAME] }}` with the Secret | ||
|
||
- (Result should look something like this: `GITHUB_TOKEN: ${{ secrets.SUMMARY_CARD_TOKEN }}`) | ||
|
||
4. Commit changes | ||
|
||
|
||
<p align="center"> <img src="./assets_new/edit_wrkflw.gif" alt="animated"> </p> | ||
|
||
|
||
# Run the workflow | ||
|
||
1. Navigate to Actions -> on the left side `profile-summary-cards` -> hit the button `Run workflow` -> Run workflow | ||
|
||
|
||
<p align="center"> <img src="./assets_new/run_wrkflw.gif" alt="animated"> </p> | ||
|
||
2. Wait till the workflow run appears (if not, please refresh the site) | ||
|
||
- its normal that the loading indicator "gets stuck" at a certain point, just refresh the page. | ||
|
||
3. If the loading indicators turn blue with a check inside, congratulations! | ||
- if it for some reason wont, you've probably messed up somewhere (or this tutorial got outdated!) I recommend going from the beginning again OR making a new repo and renaming it after you've successfully managed to deploy this app. | ||
|
||
# Final step | ||
You did it! now we are ready to choose the theme we want our cards to be in | ||
1. Navigate to Code -> profile-summary-card-output -> Select a prefered theme -> README.md | ||
|
||
- You can get really creative with the layout you want your cards to be in, but for simplicity sake, I will pick a whole bundle | ||
|
||
2. Copy the desired markdown section. | ||
|
||
3. Navigate to Code -> Hit on pencil button on the right side of your README.md file | ||
|
||
4. Paste in the copied content and hit Commit changes! | ||
|
||
|
||
<p align="center"> <img src="./assets_new/edit_rdm.gif" alt="animated"> </p> | ||
|
||
# The end | ||
|
||
Now if everything went right. The cards should appear on your profile! | ||
|
||
Don't be afraid to experiment with themes! There are many that might suit you better. | ||
|
||
--- | ||
That's it is guys. Thank you for going through this tutorial. I hope you found it somewhat helpful. | ||
|
||
if you find any typos or erros please open an issue so I can get on them asap. | ||
|
||
Have a pleasant rest of your day ^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
## Let's start | ||
|
||
--- | ||
|
||
### First step | ||
|
||
| We create a Personal access token with permissions we need | | ||
| :---------------------------------------------------------------------------: | | ||
| 1. Find `Settings` | | ||
| <img src="./assets_legacy/find-setting.png" height="520" width="360"> | | ||
| 2. Find `Developer Settings` | | ||
| <img src="./assets_legacy/find-developer-settings.png" height="500" width="360"> | | ||
| 3. Find `Personal access tokens` | | ||
| <img src="./assets_legacy/find-personal-access-tokens.png" height="200" width="400"> | | ||
| 4. Press `Generate new token` button | | ||
| <img src="./assets_legacy/generate-new-token.png" height="220" width="900"> | | ||
| 5. Type access token name and check permissions | | ||
| <img src="./assets_legacy/create-token.png" height="520" width="380"> | | ||
| 6. Scroll to bottom and press `Generate token` button | | ||
| <img src="./assets_legacy/generate-token-button.png" height="200" width="400">> | | ||
| 7. Then we get the token, copy the token value, we will use it later | | ||
| ![](./assets_legacy/copy-token-value.png) | | ||
|
||
--- | ||
|
||
### Add to repo | ||
|
||
- If you want create a Profile README or create a new repository. [Next Step](#use-template) | ||
|
||
- If you want add to a exist repository. [Next Step](#add-personal-access-token-to-repo) | ||
|
||
--- | ||
|
||
### Use template | ||
|
||
| Open template page [github-profile-summary-cards-example](https://github.com/vn7n24fzkq/github-profile-summary-cards-example) | | ||
| :---------------------------------------------------------------------------------------------------------------------------------------------------------------: | | ||
| Find and press `Use this template` button | | ||
| <img src="./assets_legacy/press-use-template.png" height="300" width="720"> | | ||
| Type repository name then press `Create repository from template` button (If you want to create a Profile README repository then the name should be you username) | | ||
| <img src="./assets_legacy/type-repo-name.png" height="300" width="500"> | | ||
| Now we have a new repository | | ||
| <img src="./assets_legacy/new-repo.png" height="300" width="600"> | | ||
|
||
[Next Step](#add-personal-access-token-to-repo) | ||
|
||
--- | ||
|
||
### Add Github Action to repo | ||
|
||
| We are gonna use the personal token we early copy | | ||
| :--------------------------------------------------------------------: | | ||
| Find and click `Add file` button | | ||
| <img src="./assets_legacy/where-is-add-file.png" height="250" width="900"> | | ||
| Type file name with path `.github/workflows/profile-summary-cards.yml` | | ||
| <img src="./assets_legacy/type-file-name.png" height="250" width="840"> | | ||
| Copy and paste to the file | | ||
|
||
```yml | ||
name: GitHub-Profile-Summary-Cards | ||
|
||
on: | ||
schedule: # execute every 24 hours | ||
- cron: "* */24 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: generate | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: vn7n24fzkq/github-profile-summary-cards@release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
USERNAME: ${{ github.repository_owner }} | ||
``` | ||
| It should looks like this one | | ||
| :-----------------------------------------------------------: | | ||
| <img src="./assets_legacy/new-file.png" height="800" width="700"> | | ||
| Then we commit file | | ||
| <img src="./assets_legacy/commit-file.png" height="400" width="500"> | | ||
[Next Step](#add-personal-access-token-to-repo) | ||
--- | ||
### Add Personal access token to repo | ||
| We are gonna use the personal token we early copy | | ||
| :-------------------------------------------------------------------------------------------------------------------: | | ||
| Find `Settings` in repository | | ||
| <img src="./assets_legacy/find-repo-settings.png" height="300" width="750"> | | ||
| Find secrets in repository settings | | ||
| <img src="./assets_legacy/find-secrets.png" height="500" width="400"> | | ||
| Now, we type secret name you want and paste the personal access token as secret Value, then press `Add secret` button | | ||
| <img src="./assets_legacy/type-token-and-token-value.png" height="300" width="600"> | | ||
| It should has a secret here | | ||
| <img src="./assets_legacy/secret-preview.png" height="350" width="650"> | | ||
|
||
[Next Step](#change-github-action-token) | ||
|
||
--- | ||
|
||
### Change Github Action token | ||
|
||
| We are almost done! | | ||
| :------------------------------------------------------------------: | | ||
| Find the github action file just added | | ||
| <img src="./assets_legacy/find-workflow-file.png" height="350" width="650"> | | ||
| And we do some modify this | | ||
| <img src="./assets_legacy/edit-workflow-file.png" height="500" width="950"> | | ||
| Replace default GITHUB_TOKEN with the secret we jsut add | | ||
| <img src="./assets_legacy/old-secret.png" height="450" width="950"> | | ||
| With new secret | | ||
| <img src="./assets_legacy/new-secrect.png" height="450" width="950"> | | ||
| Commit this change | | ||
| <img src="./assets_legacy/commit-secret.png" height="450" width="950"> | | ||
|
||
[Next Step](#trigger-action) | ||
|
||
### Trigger action | ||
|
||
| Now the action should automatically start | | ||
| :--------------------------------------------------------------------: | | ||
| We can check workflow runs | | ||
| <img src="./assets_legacy/where-is-action.png" height="350" width="650"> | | ||
| Run workflow manually | | ||
| <img src="./assets_legacy/run-workflow.png" height="350" width="850"> | | ||
| Wait workflow finish (You need to refresh page to see latest workflow) | | ||
| <img src="./assets_legacy/run-workflow.png" height="350" width="850"> | | ||
|
||
[Next Step](#everything-are-finished!) | ||
|
||
--- | ||
|
||
### Everything are finished! | ||
|
||
| We can see all cards of each themes 🎉 | | ||
| :------------------------------------------------------: | | ||
| Check profile-summary-card-output folder in your repo | | ||
| <img src="./assets_legacy/output.png" height="550" width="650"> | | ||
| :star: Finish :star: | | ||
| <img src="./assets_legacy/finish.png" height="550" width="650"> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
https://github.com/Cheezik/github-profile-summary-cards/assets/80171791/c93167c9-340e-4353-8950-d7b80a4b59a0 | ||
|
||
|
||
https://github.com/Cheezik/github-profile-summary-cards/assets/80171791/d9805f94-10ee-4517-9a3f-ac50b63a78ec | ||
|
||
|
||
|
||
https://github.com/Cheezik/github-profile-summary-cards/assets/80171791/e61d6f36-7765-4e94-9de6-5473d7216a26 | ||
|
||
|
||
|
||
https://github.com/Cheezik/github-profile-summary-cards/assets/80171791/3f41056a-6e12-4910-b18c-977b59a83501 | ||
|
||
|
||
|
||
https://github.com/Cheezik/github-profile-summary-cards/assets/80171791/3e63ccd5-60ef-4636-a0a6-238371bf5db7 | ||
|
||
|
||
|
||
https://github.com/Cheezik/github-profile-summary-cards/assets/80171791/8553ff1f-2ea6-4a0a-b87b-7ac029f1e04a | ||
|
||
|
||
|
||
https://github.com/Cheezik/github-profile-summary-cards/assets/80171791/61b5a2a9-78c9-4f4d-a547-f7a23e16c417 | ||
|
||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.