From efd2f405d60791123f69dfd190b1a54797e0aa73 Mon Sep 17 00:00:00 2001 From: Amadeusz Sadowski Date: Sat, 27 Jun 2020 18:50:33 +0200 Subject: [PATCH] feat: GH Actions workflows --- .github/workflows/chatops.yml | 19 +++++++++++++++++++ .github/workflows/ci.yml | 18 ++++++++++++++++++ .github/workflows/publish-catpkg.yml | 12 ++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 .github/workflows/chatops.yml create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/publish-catpkg.yml diff --git a/.github/workflows/chatops.yml b/.github/workflows/chatops.yml new file mode 100644 index 00000000..ffaebf7f --- /dev/null +++ b/.github/workflows/chatops.yml @@ -0,0 +1,19 @@ +# For details and description, see https://github.com/BSData/chatops +name: ChatOps +on: + issue_comment: + types: [created] +jobs: + dispatch: + runs-on: ubuntu-latest + steps: + - name: Checkout ChatOps repo + uses: actions/checkout@v2 + with: + repository: BSData/chatops + path: chatops + - name: /command dispatch + uses: peter-evans/slash-command-dispatch@v1 + with: + token: ${{ secrets.SLASH_COMMAND_DISPATCH_TOKEN }} + config-from-file: chatops/commands.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..df5ecdca --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: CI + +on: [ push, pull_request ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install wham + run: dotnet tool install wham --version 0.7.0 --tool-path ../tools + - name: Publish snapshot.bsr + run: ../tools/wham publish -f snapshot -o artifacts/snapshot --verbosity detailed + - name: Upload snapshot.bsr as workflow artifact + uses: actions/upload-artifact@v1 + with: + name: snapshot + path: artifacts/snapshot diff --git a/.github/workflows/publish-catpkg.yml b/.github/workflows/publish-catpkg.yml new file mode 100644 index 00000000..07cb419a --- /dev/null +++ b/.github/workflows/publish-catpkg.yml @@ -0,0 +1,12 @@ +# This workflow adds the necessary assets to every release +# For more details, visit https://github.com/BSData/publish-catpkg +name: Publish catpkg +on: + release: + types: [ published, edited ] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: BSData/publish-catpkg@v1