Skip to content

Commit

Permalink
Update release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdelahunt authored Jun 28, 2023
1 parent da6cbbd commit 6a01327
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ jobs:
uses: actions/checkout@v3

# TS SDK
- name: Use Node.js 16.3.0
uses: actions/setup-node@v3
with:
node-version: 16.3.0
registry-url: "https://registry.npmjs.org"
#- name: Use Node.js 16.3.0
# uses: actions/setup-node@v3
# with:
# node-version: 16.3.0
# registry-url: "https://registry.npmjs.org"

# Python SDK
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@a362e5fb42057a3a23a62218b050838f1bacca5d
#- name: Inject slug/short variables
# uses: rlespinasse/github-slug-action@a362e5fb42057a3a23a62218b050838f1bacca5d

# Python SDK
- name: Use python
uses: actions/setup-python@v1
with:
python-version: '3.x'
#- name: Use python
# uses: actions/setup-python@v1
# with:
# python-version: '3.x'

# Java SDK
#- name: Set up JDK 11
Expand All @@ -60,9 +60,9 @@ jobs:
# gpg --list-secret-keys --keyid-format LONG

# Python SDK
- name: Install Poetry
working-directory: app-services-sdk-python
run: make install-setup
#- name: Install Poetry
# working-directory: app-services-sdk-python
# run: make install-setup

# Java SDK
#- name: Compile Java & run tests
Expand All @@ -72,39 +72,39 @@ jobs:
# run: mvn clean install

# TS SDK
- name: Compile TypeScript
working-directory: app-services-sdk-ts
run: |
yarn install
yarn build
#- name: Compile TypeScript
# working-directory: app-services-sdk-ts
# run: |
# yarn install
# yarn build

- name: Set git identity
run: |
git config user.name ci-bot
git config user.email ci-bot@andreatp.
# Python SDK
- name: Update Pytohn to new version
working-directory: app-services-sdk-python
run: poetry version ${{ github.event.inputs.release-version }}
#- name: Update Pytohn to new version
# working-directory: app-services-sdk-python
# run: poetry version ${{ github.event.inputs.release-version }}

# Java SDK
#- name: Update Java to new version
# working-directory: app-services-sdk-java
# run: mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${{ github.event.inputs.release-version }}

# TS SDK
- name: Update TypeScript package versions
run: VERSION=${{ github.event.inputs.release-version }} bash scripts/update-ts-packages.sh
#- name: Update TypeScript package versions
# run: VERSION=${{ github.event.inputs.release-version }} bash scripts/update-ts-packages.sh

# Python SDK
- name: Build Python modules
working-directory: app-services-sdk-python
run: make build
#- name: Build Python modules
# working-directory: app-services-sdk-python
# run: make build

# Python SDK
- name: Move python dist folder
run: cp -r app-services-sdk-python/dist .
#- name: Move python dist folder
# run: cp -r app-services-sdk-python/dist .

- name: Create branch and push tag
run: |
Expand All @@ -116,10 +116,10 @@ jobs:
git push origin v${{ github.event.inputs.release-version }}
# Python SDK
- name: Publish Python SDK
uses: pypa/gh-action-pypi-publish@c7f29f7adef1a245bd91520e94867e5c6eedddcc #release/v1
with:
password: ${{ secrets.RHOAS_PYPI_API_TOKEN }}
#- name: Publish Python SDK
# uses: pypa/gh-action-pypi-publish@c7f29f7adef1a245bd91520e94867e5c6eedddcc #release/v1
# with:
# password: ${{ secrets.RHOAS_PYPI_API_TOKEN }}

# Java SDK
#- name: Publish Java SDK
Expand All @@ -131,12 +131,12 @@ jobs:
# MAVEN_GPG_SECRET_KEY_PASSWORD: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}

# TS SDK
- name: Publish JS SDK
working-directory: app-services-sdk-ts
run: |
npm publish --workspace=packages
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} #
#- name: Publish JS SDK
# working-directory: app-services-sdk-ts
# run: |
# npm publish --workspace=packages
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} #

- name: Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
Expand Down

0 comments on commit 6a01327

Please sign in to comment.