Skip to content

Daily Site Update #1123

Daily Site Update

Daily Site Update #1123

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Daily Site Update
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 0 * * *'
push:
branches: master
pull_request:
branches: master
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
update-site:
name: Update projects page
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Repo
uses: actions/[email protected]
with:
ref: 'gh-pages'
- name: Setuping Node latest version
uses: actions/[email protected]
with:
node-version: '12'
check-latest: true
- name: Installing gitfolio
run: npm install gitfolio -g
- name: Building profile
run: gitfolio build Jerit3787 --theme dark --twitter Jerit3787
- name: Removing old files
continue-on-error: true
run: rm index.html index.css
- name: Copying new files for commit
run: cp -a -i dist/. ./
- name: Cleaning up files
run: rm -r dist
- name: Preparing commit title
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d')"
- name: Add & Commit to repo
uses: EndBug/[email protected]
with:
add: '["*.html --force", "*.css --force"]'
cwd: './'
default_author: github_actions
message: ${{ steps.date.outputs.date }}
tag: ${{ steps.date.outputs.date }}