Update Profile Image #15
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: CD using Github Actions | |
on: push | |
jobs: | |
prod-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build prod site and move contents from dist to root | |
run: | | |
rm -rf index.html *.png assets *.xml | |
cd source/ | |
npm i | |
npm run build | |
sudo mv build/* ../ | |
rm -rf build node_modules .svelte-kit | |
- name: Commit files | |
run: | | |
git pull | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "Added prod build by Hetarth Shah using Github Actions" | |
git push |