Skip to content

Commit

Permalink
Create workflow for site refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
esebastian authored Sep 4, 2019
1 parent d1ebe81 commit 10e75c1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/site-refresh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Refresh site

on:
schedule:
- cron: '*/15 * * * *'
jobs:
refresh:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
ref: metalsmith
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm install
- run: npm run build
env:
NODE_ENV: production
- run: surge --project $GITHUB_WORKSPACE/dist --domain vlctechhub-revamp.surge.sh
env:
SURGE_LOGIN: ${{secrets.SURGE_LOGIN}}
SURGE_TOKEN: ${{secrets.SURGE_TOKEN}}

0 comments on commit 10e75c1

Please sign in to comment.