update to Github Actions to release

This commit is contained in:
Waldek Maleska 2021-02-26 11:00:13 +00:00
parent b3aa4d20bb
commit 04511660b9
No known key found for this signature in database
GPG Key ID: 8667A0662654167A
3 changed files with 30 additions and 22 deletions

View File

@ -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 }}

15
.github/workflows/lint.yml vendored Normal file
View File

@ -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

15
.github/workflows/publish.yml vendored Normal file
View File

@ -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 }}