Skip to content

Update deploy .yml #509

Update deploy .yml

Update deploy .yml #509

Workflow file for this run

name: Build and deploy to GitHub Pages
on:
push:
branches: [main]
schedule:
- cron: '0 0 */6 * *'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/[email protected]
- name: Install, lint, build πŸ”§
run: |
npm install
npm run lint:js
npm run build
- name: Deploy πŸš€
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build
commit:
name: Commit changes
runs-on: ubuntu-latest
if: github.event_name == 'schedule'
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Make a change to update_log.txt
run: |
echo "Update on $(date)" > update_log.txt
- name: Configure Git user
run: |
git config --global user.name 'Iryna-Vyshniak'
git config --global user.email '[email protected]'
- name: Commit changes
run: |
git add update_log.txt
git commit -m "Update log"
git push