Files: dff2ad7dc015d1a11af467d2ca08fd34d1a712af / .github / workflows / main.yml
1101 bytesRaw
1 | # This is a basic workflow to help you get started with Actions |
2 | |
3 | name: CI |
4 | |
5 | # Controls when the action will run. Triggers the workflow on push or pull request |
6 | # events but only for the master branch |
7 | on: |
8 | push: |
9 | branches: [ master ] |
10 | pull_request: |
11 | branches: [ master ] |
12 | |
13 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel |
14 | jobs: |
15 | # This workflow contains a single job called "build" |
16 | build: |
17 | # The type of runner that the job will run on |
18 | runs-on: ubuntu-latest |
19 | |
20 | # Steps represent a sequence of tasks that will be executed as part of the job |
21 | steps: |
22 | # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
23 | - uses: actions/checkout@v2 |
24 | |
25 | # Runs a set of commands using the runners shell |
26 | - name: Run a multi-line script |
27 | run: | |
28 | npm install |
29 | npm run build |
30 | |
31 | - name: GH Pages deploy |
32 | uses: Cecilapp/GitHub-Pages-deploy@2.0.1 |
33 | env: |
34 | EMAIL: reto@factsmission.com |
35 | GH_TOKEN: ${{ secrets.ACCESS_TOKEN }} |
36 | BUILD_DIR: public |
37 |
Built with git-ssb-web