✨ prompt_password: support Windows #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Publish on Galaxy | |
'on': | |
push: | |
tags: | |
- '*' | |
workflow_dispatch: | |
env: | |
WORKING_DIR: ansible_collections/huyz/general | |
defaults: | |
run: | |
working-directory: ansible_collections/huyz/general | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
env: | |
ANSIBLE_FORCE_COLOR: '1' | |
steps: | |
- name: Check out the codebase. | |
uses: actions/checkout@v3 | |
with: | |
path: ${{ env.WORKING_DIR }} | |
# If we ever wanted to build & release without using a third-party action | |
# - name: Set up Python 3. | |
# uses: actions/setup-python@v4 | |
# with: | |
# python-version: '3.x' | |
# | |
# - name: Install Ansible. | |
# run: pip3 install ansible-core | |
# | |
# - name: Release to Ansible Galaxy. | |
# run: ansible-playbook -i 'localhost,' galaxy-deploy.yml -e "github_tag=${{ github.ref }}" | |
- name: Get the version name from the tags | |
run: echo "RELEASE_VERSION=${GITHUB_REF/refs\/tags\/v/}" >> "$GITHUB_ENV" | |
- name: Build collection and publish to Galaxy | |
uses: artis3n/ansible_galaxy_collection@v2 | |
with: | |
collection_dir: ${{ env.WORKING_DIR }} | |
api_key: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} | |
galaxy_version: ${{ env.RELEASE_VERSION }} |