Skip to content

Tooling version bump to 1.0.3 (#119) #38

Tooling version bump to 1.0.3 (#119)

Tooling version bump to 1.0.3 (#119) #38

Workflow file for this run

---
# Continuous Delivery (Release)
name: cd
on:
push:
tags:
- 'v*'
jobs:
delivery-nodejs:
name: Prepare for NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: Get Version from Git Tag
id: tag_name
run: |
echo "VERSION=$(echo ${GITHUB_REF:11})" >> $GITHUB_ENV
- name: Install Dependencies and Package Project
id: installing
run: |
npm ci --optional
npm pack
- name: Upload NPM Artifacts
id: upload_npm
uses: actions/upload-artifact@v3
with:
name: package-npm
path: cfn-rpdk-${{ env.VERSION }}.tgz
delivery-python:
name: Prepare for PyPI
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.6]
steps:
- uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Dependencies and Package Project
id: installing
run: |
python -m pip install --upgrade pip setuptools wheel
python3 setup.py sdist bdist_wheel
- uses: actions/upload-artifact@v3
with:
name: dist-py${{ matrix.python }}
path: dist
delivery-github:
name: Delivery to GitHub
needs: [delivery-nodejs, delivery-python]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download NPM Artifacts
uses: actions/download-artifact@v3
with:
name: package-npm
- name: Download Python 3.6 Artifacts
uses: actions/download-artifact@v3
with:
name: dist-py3.6
path: dist/
- name: List Artifacts
run: |
echo 'ARTIFACTS="$(echo package-npm/* && echo dist/*)"' >> $GITHUB_ENV
- name: GitHub Release
id: releasing
uses: docker://antonyurchenko/git-release:v3.4.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DRAFT_RELEASE: 'false'
PRE_RELEASE: 'true'
CHANGELOG_FILE: 'CHANGELOG.md'
ALLOW_EMPTY_CHANGELOG: 'false'
ALLOW_TAG_PREFIX: 'true'
with:
args: |
${{ env.ARTIFACTS }}