Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] - Auto Deployment of Your Fork/Website #211

Open
adithyaakrishna opened this issue Jun 28, 2022 · 1 comment
Open

[Feature] - Auto Deployment of Your Fork/Website #211

adithyaakrishna opened this issue Jun 28, 2022 · 1 comment

Comments

@adithyaakrishna
Copy link

Hi All 👋🏻
I am a huge fan of this portfolio website and have been using it for like an year and half. One issue for me was that I had to clone, make changes and run npm run deploy Deploy Script the site to deploy on GitHub Pages which would take quite some time and I was not able to make changes on the go be it through GitHub UI (Both PC & Mobile). So I wanted a GitHub Action to run whenever I make some changes and commit it to a specific branch using the GitHub UI itself. Hence I kind-of wrote a workflow for this,

name: Deploy Website 🕸
on:
  push:
    branches:
      - source # Change the branch name to your main one in which source code is there 
jobs:
  Build-N-Deploy:
    concurrency: ci-${{ github.ref }}
    runs-on: ubuntu-latest
    steps:
      - name: Checkout 🛎️
        uses: actions/checkout@v3

      - name: Install and Build 🔧
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 
        run: |
          git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
          yarn
          npm run deploy

Note: For this to run, you need the npm run deploy configured

Hope this helps someone 🚀

PS. Thanks @bchiang7 for this amazing portfolio :)

@abhay2510kr
Copy link

Hey

Can u please help me out to deploy this website on github pages

What steps i have to follow to edit this and run this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants