diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 62d7e9f..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,22 +0,0 @@ - -name: Publish - -# Controls when the action will run. -on: - push: - tags: - - "v[0-9]+.[0-9]+.[0-9]+" - workflow_dispatch: - -jobs: - galaxy: - runs-on: ubuntu-latest - - steps: - # Checks-out the repository under $GITHUB_WORKSPACE, so it's accessible to the job - - uses: actions/checkout@v2 - - - name: Build and publish a collection - uses: artis3n/ansible_galaxy_collection@v2 - with: - api_key: '${{ secrets.GALAXY_API_KEY }}' diff --git a/.github/workflows/publish_collection.yml b/.github/workflows/publish_collection.yml new file mode 100644 index 0000000..5608549 --- /dev/null +++ b/.github/workflows/publish_collection.yml @@ -0,0 +1,10 @@ +--- +name: Publish Ansible Collection +'on': + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" + workflow_dispatch: +jobs: + publish_collection: + uses: stackhpc/.github/.github/workflows/publish_collection.yml@main