Skip to content

Release 6.1.0

Release 6.1.0 #34

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: ansible-galaxy version
run: ansible-galaxy --version
- name: Import role
run: ansible-galaxy role import --api-key ${ANSIBLE_GALAXY_API_KEY} ${GITHUB_REPOSITORY%/*} ${GITHUB_REPOSITORY#*/}
env:
ANSIBLE_GALAXY_API_KEY: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}
- name: Checkout code
uses: actions/checkout@v4
- name: Get version from GITHUB_REF
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
See changelog [here](https://github.com/haxorof/ansible-role-docker-ce/blob/${{ steps.get_version.outputs.VERSION }}/CHANGELOG.md)
draft: false
prerelease: false