From 04511660b93ee9374ba52f1fed42c23d57bf2210 Mon Sep 17 00:00:00 2001 From: Waldek Maleska Date: Fri, 26 Feb 2021 11:00:13 +0000 Subject: [PATCH] update to Github Actions to release --- .github/workflows/ansible.yml | 22 ---------------------- .github/workflows/lint.yml | 15 +++++++++++++++ .github/workflows/publish.yml | 15 +++++++++++++++ 3 files changed, 30 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/ansible.yml create mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/ansible.yml b/.github/workflows/ansible.yml deleted file mode 100644 index edcef52..0000000 --- a/.github/workflows/ansible.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Ansible - -on: [push, pull_request] - -jobs: - - linter: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Lint Ansible Playbook - uses: ansible/ansible-lint-action@master - - release: - needs: - - linter - runs-on: ubuntu-latest - steps: - - name: galaxy - uses: robertdebock/galaxy-action@1.0.3 - with: - galaxy_api_key: ${{ secrets.galaxy_api_key }} \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..b343972 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,15 @@ +--- +name: Lint + +"on": + - push + - pull_request + +jobs: + + linter: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Lint Ansible Playbook + uses: ansible/ansible-lint-action@master diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..249c448 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,15 @@ +--- +name: Publish to Galaxy + +"on": + release: + types: [created] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: galaxy + uses: robertdebock/galaxy-action@1.1.0 + with: + galaxy_api_key: ${{ secrets.galaxy_api_key }}