Skip to content

v1.10.0

v1.10.0 #23

Workflow file for this run

# Copyright (c) 2023 VEXXHOST, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
name: publish
on:
release:
types:
- published
jobs:
ansible-collection:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Build and publish collection
uses: artis3n/ansible_galaxy_collection@v2
with:
api_key: "${{ secrets.GALAXY_API_KEY }}"
- name: Get release
uses: bruceadams/[email protected]
id: get_release
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Get file name for collection
id: get_filename
run: echo ::set-output name=filename::$(ls *.tar.gz)
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./${{ steps.get_filename.outputs.filename }}
asset_name: ${{ steps.get_filename.outputs.filename }}
asset_content_type: application/gzip