Skip to content

Commit

Permalink
Adds github action
Browse files Browse the repository at this point in the history
  • Loading branch information
samueldr committed Feb 16, 2019
1 parent 2c5d089 commit 23e7c0e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
workflow "Build on push" {
on = "push"
resolves = ["samueldr/action-nix-build@master"]
}

action "samueldr/action-nix-build@master" {
uses = "samueldr/action-nix-build@master"
env = {
NIXPKGS_ALLOW_UNFREE = "1"
}
}

workflow "Upload on release" {
on = "release"
resolves = [
"JasonEtco/upload-to-release@v0.1.1",
"samueldr/action-nix-build@master-1",
]
}

action "samueldr/action-nix-build@master-1" {
uses = "samueldr/action-nix-build@master"
env = {
NIXPKGS_ALLOW_UNFREE = "1"
}
}

action "JasonEtco/upload-to-release@v0.1.1" {
uses = "JasonEtco/upload-to-release@v0.1.1"
needs = ["samueldr/action-nix-build@master-1"]
args = "result/ROC-RK3399-PC-firmware-combined.img.xz"
secrets = ["GITHUB_TOKEN"]
}

0 comments on commit 23e7c0e

Please sign in to comment.