-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (50 loc) · 1.85 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# This GitHub action creates new release and uploads new collection version to
# Ansible Galaxy
name: Semantic Release to GitHub and Ansible Galaxy
on:
workflow_dispatch: null
env:
COLLECTION_PATH: .ansible/collections/ansible_collections/equinix/cloud
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .ansible/collections/ansible_collections/equinix/cloud
steps:
- name: checkout repo
uses: actions/checkout@v4
with:
path: ${{ env.COLLECTION_PATH }}
fetch-depth: 0
ssh-key: ${{ secrets.DEPLOY_KEY }}
- 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@v5
with:
python-version-file: ${{ env.COLLECTION_PATH }}/.python-version
- name: install dependencies
run: pip3 install -r requirements-dev.txt -r requirements.txt
- name: Do GitHub release
uses: cycjimmy/semantic-release-action@v4
with:
working_directory: ${{ env.COLLECTION_PATH }}
semantic_version: 19.0.5
extra_plugins: |
@semantic-release/[email protected]
@semantic-release/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_AUTHOR_NAME: equinix-labs@auto-commit-workflow
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: equinix-labs@auto-commit-workflow
GIT_COMMITTER_EMAIL: [email protected]
- name: publish the collection
run: make publish
env:
GALAXY_TOKEN: ${{ secrets.GALAXY_TOKEN }}
COLLECTION_VERSION: ${{ github.event.release.tag_name }}