Skip to content

Commit 943a49a

Browse files
(chore): Improve GitHub release pipeline (#32)
Improve pipeline so that we can create all packages and publish to GitHub release.
1 parent 87d11e8 commit 943a49a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/cd.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
with:
1818
node-version: 12
1919
registry-url: https://registry.npmjs.org/
20-
- uses: olegtarasov/get-tag@v2
20+
- name: Get Version from Git Tag
2121
id: tag_name
22-
with:
23-
tagRegex: 'v(.*)'
22+
run: |
23+
echo "VERSION=$(echo ${GITHUB_REF:11})" >> $GITHUB_ENV
2424
- name: Install Dependencies and Package Project
2525
id: installing
2626
run: |
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions/upload-artifact@v1
3232
with:
3333
name: package-npm
34-
path: cfn-rpdk-${{ steps.tag_name.outputs.tag }}.tgz
34+
path: cfn-rpdk-${{ env.VERSION }}.tgz
3535

3636
delivery-python:
3737
name: Prepare for PyPI
@@ -72,10 +72,10 @@ jobs:
7272
path: dist/
7373
- name: List Artifacts
7474
run: |
75-
echo ::set-env name=ARTIFACTS::$(echo package-npm/* && echo dist/*)
75+
echo 'ARTIFACTS="$(echo package-npm/* && echo dist/*)"' >> $GITHUB_ENV
7676
- name: GitHub Release
7777
id: releasing
78-
uses: docker://antonyurchenko/git-release:v3.1.2
78+
uses: docker://antonyurchenko/git-release:v3.4.2
7979
env:
8080
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8181
DRAFT_RELEASE: 'false'

0 commit comments

Comments
 (0)