forked from linode/ansible_linode
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.22 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
43
44
45
# This GitHub action can publish assets for release when a tag is created.
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
name: release
on:
workflow_dispatch: null
release:
types: [ published ]
jobs:
galaxyrelease:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .ansible/collections/ansible_collections/linode/cloud
steps:
- name: checkout repo
uses: actions/checkout@v3
with:
path: .ansible/collections/ansible_collections/linode/cloud
- name: update packages
run: sudo apt-get update -y
- name: install make
run: sudo apt-get install -y build-essential
- name: setup python 3
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: install dependencies
run: make deps
- name: install ansible dependencies
run: ansible-galaxy collection install amazon.aws:==6.0.1
- name: inject docs using specdoc
run: make inject
- name: publish the collection
run: make publish
env:
GALAXY_TOKEN: ${{ secrets.GALAXY_TOKEN }}
COLLECTION_VERSION: ${{ github.event.release.tag_name }}