From f4987317c69e30ed2e45e7f787ec9df0ebc948ca Mon Sep 17 00:00:00 2001 From: Mikeal Rogers Date: Wed, 14 Aug 2019 19:19:25 +0000 Subject: [PATCH] converted main.workflow to Actions V2 yml files --- .github/main.workflow | 39 -------------------------------------- .github/workflows/push.yml | 29 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 39 deletions(-) delete mode 100644 .github/main.workflow create mode 100644 .github/workflows/push.yml diff --git a/.github/main.workflow b/.github/main.workflow deleted file mode 100644 index 668ba22..0000000 --- a/.github/main.workflow +++ /dev/null @@ -1,39 +0,0 @@ -workflow "Build and Publish" { - on = "push" - resolves = ["Publish"] -} - -action "Shell Lint" { - uses = "actions/bin/shellcheck@master" - args = "entrypoint.sh" -} - -action "Build Docker" { - needs = ["Shell Lint"] - uses = "actions/docker/cli@master" - args = "build -t npm ." -} - -action "Build" { - needs = ["Build Docker"] - uses = "actions/npm@master" - args = "install" -} - -action "Docker Tag" { - needs = ["Build"] - uses = "actions/docker/tag@master" - args = "npm github/npm --no-latest" -} - -action "Publish Filter" { - needs = ["Build"] - uses = "actions/bin/filter@master" - args = "branch master" -} - -action "Publish" { - needs = "Publish Filter" - uses = "mikeal/merge-release@master" - secrets = ["GITHUB_TOKEN", "NPM_AUTH_TOKEN"] -} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..4c8ea14 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,29 @@ +on: push +name: Build and Publish +jobs: + shellLint: + name: Shell Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Shell Lint + uses: actions/bin/shellcheck@master + with: + args: entrypoint.sh + - name: Build Docker + uses: actions/docker/cli@master + with: + args: build -t npm . + - name: Build + uses: actions/npm@master + with: + args: install + - name: Publish Filter + uses: actions/bin/filter@master + with: + args: branch master + - name: Publish + uses: mikeal/merge-release@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}