Fix YAML syntax in NPM and PyPi jobs (#4469)

This commit is contained in:
Amaury Chamayou 2022-11-04 09:39:28 +00:00 коммит произвёл GitHub
Родитель 0ef9ea54f8
Коммит 54e2d79473
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 4 добавлений и 6 удалений

6
.github/workflows/npm.yml поставляемый
Просмотреть файл

@ -4,8 +4,6 @@ on:
release:
types: [published]
env:
jobs:
build_and_publish:
name: "Build and publish containers for all platforms"
@ -16,12 +14,12 @@ jobs:
- name: Get release number from git tag (release) or latest (branch)
run: |
echo "${GITHUB_REF#refs/tags/ccf-}" >> $GITHUB_OUTPUT
echo "version=${GITHUB_REF#refs/tags/ccf-}" >> $GITHUB_OUTPUT
id: tref
- name: Fetch NPM Package from release
run: |
wget https://github.com/microsoft/CCF/releases/download/ccf-${{steps.tref.outputs.tag}}/microsoft-ccf-app-${{steps.tref.outputs.tag}}.tgz
wget https://github.com/microsoft/CCF/releases/download/ccf-${{steps.tref.outputs.version}}/microsoft-ccf-app-${{steps.tref.outputs.version}}.tgz
- name: Publish NPM Package to https://www.npmjs.com/package/@microsoft/ccf-app
run: |

4
.github/workflows/pypi.yml поставляемый
Просмотреть файл

@ -14,12 +14,12 @@ jobs:
- name: Get release number from git tag (release) or latest (branch)
run: |
echo "${GITHUB_REF#refs/tags/ccf-}" >> $GITHUB_OUTPUT
echo "version=${GITHUB_REF#refs/tags/ccf-}" >> $GITHUB_OUTPUT
id: tref
- name: Fetch PyPi Package from release
run: |
wget https://github.com/microsoft/CCF/releases/download/ccf-${{steps.tref.outputs.tag}}/ccf-${{steps.tref.outputs.tag}}-py3-none-any.whl
wget https://github.com/microsoft/CCF/releases/download/ccf-${{steps.tref.outputs.version}}/ccf-${{steps.tref.outputs.version}}-py3-none-any.whl
- name: Publish PyPi Package to https://pypi.org/project/ccf/
run: |