Skip to content

Commit

Permalink
Update actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebind committed Jul 7, 2019
1 parent 76166ce commit 4aa3c74
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 32 deletions.
24 changes: 15 additions & 9 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
workflow "Main" {
workflow "build" {
on = "push"
resolves = ["Publish docs"]
resolves = ["test", "publish-docs"]
}

action "Test" {
action "test" {
uses = "docker://rust"
args = "cargo test"
}

action "Master" {
action "master-branch" {
uses = "actions/bin/filter@b2bea0749eed6beb495a8fa194c071847af60ea1"
needs = ["Test"]
args = "branch master"
}

action "Publish docs" {
action "docs" {
uses = "docker://asciidoctor/docker-asciidoctor"
needs = ["Master"]
args = ["sh", "-c", "apk --no-cache add git && make publish-docs"]
secrets = ["GH_PAT", "GITHUB_TOKEN"]
args = "make docs"
}

action "publish-docs" {
uses = "maxheld83/[email protected]"
needs = ["master-branch", "docs"]
env = {
BUILD_DIR = "target/docs/"
}
secrets = ["GH_PAT"]
}
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
.PHONY: docs publish-docs

.PHONY: docs
docs: $(patsubst docs/%.adoc,target/docs/%.html,$(wildcard docs/*.adoc))

publish-docs: docs
scripts/publish-docs.sh

target/docs/%.html: docs/%.adoc
@mkdir -p target/docs
asciidoctor -b html -o $@ $^
8 changes: 8 additions & 0 deletions riptide/src/init.rip
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ table-set $GLOBALS eq $lang->eq
table-set $GLOBALS eval <string> {
call $source $string
}

def require-x <module> {
send $GLOBALS->modules->loaders | map {
call $0 $module
} | filter {
nil? $0
} | head
}
18 changes: 0 additions & 18 deletions scripts/publish-docs.sh

This file was deleted.

0 comments on commit 4aa3c74

Please sign in to comment.