Skip to content

Commit

Permalink
Merge pull request #66 from jiro4989/chore/#37-merge-workflows
Browse files Browse the repository at this point in the history
Merge docs workflow to main workflow #37
  • Loading branch information
jiro4989 authored Mar 8, 2020
2 parents 2164834 + 1569fc4 commit b6c2746
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 47 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/docs.yml

This file was deleted.

45 changes: 27 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: build

on: [push, pull_request]

env:
NIM_VERSION: 1.0.6

jobs:
skip:
runs-on: ubuntu-latest
Expand All @@ -17,25 +20,31 @@ jobs:
build:
runs-on: ubuntu-latest
needs: before
env:
NIM_VERSION: 1.0.4
steps:
- uses: actions/checkout@v1
- name: Cache choosenim
id: cache-choosenim
uses: actions/cache@v1
with:
path: ~/.choosenim
key: ${{ runner.os }}-choosenim-${{ env.NIM_VERSION }}
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v1
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }}
- uses: jiro4989/setup-nim-action@v1.0.1
- run: nimble build -Y
- run: nimble test -Y
- uses: actions/checkout@v1
- name: Cache choosenim
id: cache-choosenim
uses: actions/cache@v1
with:
path: ~/.choosenim
key: ${{ runner.os }}-choosenim-${{ env.NIM_VERSION }}
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v1
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }}
- uses: jiro4989/setup-nim-action@v1.0.1
- run: nimble build -Y
- run: nimble test -Y
- run: nimble docs
- name: Deploy documents
uses: peaceiris/actions-gh-pages@v2.4.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./docs
if: github.ref == 'refs/heads/master'

create-tag-draft:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b6c2746

Please sign in to comment.