-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (36 loc) · 1.26 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Collection Release
on:
push:
tags:
- '*'
jobs:
create_release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build Collection
uses: artis3n/ansible_galaxy_collection@v2
with:
collection_dir: 'ansible_collections/f5networks/${{ vars.COLNAME }}'
api_key: "${{ secrets.GALAXY_API_KEY }}"
publish: false
- name: Create GitHub Release
id: create_release
uses: ncipollo/release-action@v1
with:
artifacts: "f5networks-${{ vars.COLNAME }}-${{ github.ref_name }}.tar.gz"
tag: "${{ github.ref_name }}"
name: "Imperative Collection Release ${{ github.ref_name }}"
omitBody: true
token: "${{ secrets.GITHUB_TOKEN }}"
- name: Publish Collection
uses: artis3n/ansible_galaxy_collection@v2
with:
collection_dir: 'ansible_collections/f5networks/${{ vars.COLNAME }}'
api_key: "${{ secrets.GALAXY_API_KEY }}"
build: false
- uses: neonidian/teams-notify-build-status@v3
with:
webhookUrl: ${{ secrets.RELEASE_TEAMS_WEBHOOK }}
message: "Collection ${{ vars.COLNAME }} version: ${{ github.ref_name }} released."