Generate Next Release #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Next Release | |
# This workflow will generate changelog and release notes. | |
# Source: https://github.com/terraform-aws-modules/terraform-aws-vpc/blob/master/.github/workflows/release.yml | |
on: | |
workflow_dispatch: | |
env: | |
DIST_DIR: dist | |
jobs: | |
release: | |
name: Build and publish package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ssh-key: ${{ secrets.DEPLOY_KEY }} | |
- name: Install dependencies | |
working-directory: ${{ env.PACKAGE_DIR }} | |
run: | | |
python -m pip install --upgrade build | |
- name: Install pyaml for patching script | |
working-directory: ${{ env.PACKAGE_DIR }} | |
run: | | |
python -m pip install pyaml | |
- name: Create GitHub release | |
uses: cycjimmy/semantic-release-action@v4 | |
with: | |
semantic_version: 19.0.5 | |
extra_plugins: | | |
@semantic-release/[email protected] | |
@semantic-release/[email protected] | |
[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] | |
RELEASE_REQUESTER: "@${{ github.event.sender.login }}" | |
- name: Build package | |
run: | | |
python -m build --sdist --wheel --outdir ${{ env.DIST_DIR }} . | |
- name: Publish package | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
packages-dir: ${{ env.DIST_DIR }} |