Skip to content

Commit 31d8c19

Browse files
authored
Create publish.yml
1 parent 8f71e11 commit 31d8c19

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Auto-publish website
4+
5+
# Controls when the workflow will run
6+
on:
7+
schedule:
8+
- cron: "0 2 * * 1-6"
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
13+
jobs:
14+
# This workflow contains a single job called "build"
15+
build:
16+
# The type of runner that the job will run on
17+
runs-on: ubuntu-latest
18+
19+
# Steps represent a sequence of tasks that will be executed as part of the job
20+
steps:
21+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22+
- uses: actions/checkout@v2
23+
24+
- name: Install dependencies
25+
run: composer install --prefer-dist --no-progress
26+
27+
- name: Build docs
28+
run: ./vendor/bin/robo build:docs
29+
30+
- name: Publish docs
31+
run: ./vendor/bin/robo publish
32+

0 commit comments

Comments
 (0)