From 2c71e7f5224824b60760a60781e3c9b86e7f92c6 Mon Sep 17 00:00:00 2001 From: Jitin Nair Date: Tue, 4 Jun 2024 14:42:27 +0530 Subject: [PATCH 1/2] updated build script --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a24e7b7..e484024 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ jobs: FILE: cv steps: - name: Set up Git repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: cv uses: dante-ev/latex-action@latest with: @@ -20,7 +20,7 @@ jobs: - name: move run: mkdir -p github_artifacts && mv ${{ env.DIR }}/${{ env.FILE }}.pdf ./github_artifacts/ - name: Upload pdf as artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.FILE }}.pdf path: ./github_artifacts @@ -29,14 +29,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 with: path: github_artifacts - name: move run: mkdir -p github_deploy && mv github_artifacts/*/* github_deploy - name: deploy on orphan branch - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./github_deploy @@ -47,7 +47,7 @@ jobs: needs: [deploy] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Copy To Branches Action From 0918da035bcbd430639b81e902be3176c24dffab Mon Sep 17 00:00:00 2001 From: Jitin Nair Date: Tue, 4 Jun 2024 14:43:13 +0530 Subject: [PATCH 2/2] updated quickstart instructions for clarity --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 472f673..f13bdac 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,14 @@ The template is designed to be clean with sections for ## Quickstart - Fork this repo (you can use the `Use this template` button) +- Give the workflow write permissions for your forked repo (Settings -> Actions -> General) - Modify the `cv.tex` file and push changes to your repo +- Set GitHub pages source to build branch (Settings -> Pages) - The complied PDF will be available under the `build` branch You can get a direct link to the generated PDF which you can use on your website, LinkedIn etc. that will always point to the latest version of your CV. Once your site is published, your CV will be accessible at: `https://username.github.io/repo-name/` -For this, after editing your copy of `cv.tex` and pushing changes to your repo, under Settings -> Pages set your Github Pages source to the `build` directory +NOTE: For the direct link to work, after editing your copy of `cv.tex` and pushing changes to your repo, under Settings -> Pages set your Github Pages source to the `build` directory ![](https://i.imgur.com/lwATw1o.png)