Skip to content

Commit

Permalink
fix(ci): Run package commands after release. (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
calavera authored Nov 21, 2024
1 parent 90eaa29 commit 963e9a3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,16 @@ jobs:
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_REF: ${{ github.ref }}
run: errout=$(mktemp); gh release create $(cat dist/releasetag.txt) -R $GITHUB_REPOSITORY -F dist/changelog.md -t $(cat dist/releasetag.txt) --target $GITHUB_REF 2> $errout && true; exitcode=$?; if [ $exitcode -ne 0 ] && ! grep -q "Release.tag_name already exists" $errout; then cat $errout; exit $exitcode; fi
- name: Create JS Artifact
run: npx projen package:js
- name: Release JS Artifact
env:
NPM_DIST_TAG: latest
NPM_REGISTRY: registry.npmjs.org
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx -p publib@latest publib-npm
- name: Create Java Artifact
run: npx projen package:java
- name: Release Java Artifact
env:
MAVEN_SERVER_ID: 'github'
Expand All @@ -81,15 +85,21 @@ jobs:
MAVEN_USERNAME: ${{ github.actor }}
MAVEN_PASSWORD: ${{ secrets.CDK_PACKAGES_REGISTRY_GITHUB_TOKEN }}
run: npx -p publib@latest publib-maven
- name: Create Python Artifact
run: npx projen package:python
- name: Release Python Artifact
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: npx -p publib@latest publib-pypi
- name: Create Dotnet Artifact
run: npx projen package:dotnet
- name: Release Dotnet Artifact
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: npx -p publib@latest publib-nuget
- name: Create Go Artifact
run: npx projen package:go
- name: Release Go Artifact
env:
GIT_USER_NAME: github-actions
Expand Down

0 comments on commit 963e9a3

Please sign in to comment.