Add Kshitij's Portfolio (#445) #218
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
name: Autodeploy | |
run-name: Run the deploy command | |
on: | |
push: | |
branches: [main] | |
jobs: | |
deployment: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Make script file executable | |
run: chmod +x extract.sh | |
- name: Run the script | |
run: ./extract.sh | |
- name: Setup Node & deploy | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20" | |
run: | | |
npm install | |
npm run format | |
git config --global user.name "${{ github.actor }}" | |
git config --global user.email "${{ github.actor }}@users.noreply.github.com" | |
git add . | |
git commit -m "docs: deploy site" | |
git push |