Skip to content

Commit c7ec150

Browse files
authored
Initial GitHub Actions Release Workflow (#226)
- Update `docs/conf.py` to get docs builds working - Remove `python-publish.yml` workflow - Create initial `release.yml` workflow
1 parent 0f1305b commit c7ec150

File tree

3 files changed

+41
-33
lines changed

3 files changed

+41
-33
lines changed

.github/workflows/python-publish.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*"
7+
- "v*.*.*"
8+
9+
jobs:
10+
pypi:
11+
name: Release to PyPI
12+
runs-on: ubuntu-latest
13+
environment: pypi.org
14+
permissions:
15+
id-token: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Install Dependencies
19+
run: pip install -r requirements.txt
20+
- name: Get Webex Token
21+
id: webex_token
22+
run: |
23+
WEBEX_TEAMS_ACCESS_TOKEN=$(curl -s ${{ secrets.WEBEX_TOKEN_KEEPER_URL }} | jq -r .access_token)
24+
echo "WEBEX_TEAMS_ACCESS_TOKEN=$WEBEX_TEAMS_ACCESS_TOKEN" >> "$GITHUB_OUTPUT"
25+
echo "::add-mask::$WEBEX_TEAMS_ACCESS_TOKEN"
26+
- name: Build and Test
27+
run: script/ci
28+
env:
29+
WEBEX_TEAMS_ACCESS_TOKEN: ${{ steps.webex_token.outputs.WEBEX_TEAMS_ACCESS_TOKEN }}
30+
WEBEX_TEAMS_TEST_DOMAIN: ${{ vars.WEBEX_TEAMS_TEST_DOMAIN }}
31+
WEBEX_TEAMS_TEST_ID_START: ${{ vars.WEBEX_TEAMS_TEST_ID_START }}
32+
WEBEX_TEAMS_TEST_FILE_URL: ${{ vars.WEBEX_TEAMS_TEST_FILE_URL }}
33+
WEBEX_TEAMS_GUEST_ISSUER_ID: ${{ secrets.WEBEX_TEAMS_GUEST_ISSUER_ID }}
34+
WEBEX_TEAMS_GUEST_ISSUER_SECRET: ${{ secrets.WEBEX_TEAMS_GUEST_ISSUER_SECRET }}
35+
- name: Publish to PyPI
36+
uses: pypa/gh-action-pypi-publish@release/v1
37+
with:
38+
repository-url: ${{ vars.PYPI_REPOSITORY_URL }}
39+
print-hash: true

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
author = "Chris Lunsford"
1616
version = get_versions()["version"]
1717
release = get_versions()["version"]
18-
language = None
18+
language = "en"
1919

2020

2121
extensions = [
@@ -288,4 +288,4 @@
288288

289289

290290
# Example configuration for intersphinx: refer to the Python standard library.
291-
intersphinx_mapping = {"https://docs.python.org/": None}
291+
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}

0 commit comments

Comments
 (0)