Skip to content

Exclude private fields from the result of Event.to_json (#56) #16

Exclude private fields from the result of Event.to_json (#56)

Exclude private fields from the result of Event.to_json (#56) #16

Workflow file for this run

# Copyright 2018 The Nuclio Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+"
env:
PIPENV_PYTHON_VERSION: 3.7
jobs:
build-and-release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Dump github context
run: echo "$GITHUB_CONTEXT"
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
- name: Dump runner context
run: echo "$RUNNER_CONTEXT"
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ env.PIPENV_PYTHON_VERSION }}
- name: Set envs
run: |
VERSION_TAG=${GITHUB_REF#refs/tags/}
RC_RELEASE=false
if echo $VERSION_TAG | grep -qE ".*-rc[0-9]+"; then\
RC_RELEASE=true;\
fi
echo "NUCLIO_SDK_PY_VERSION=$VERSION_TAG" >> $GITHUB_ENV
echo "RC_RELEASE=$RC_RELEASE" >> $GITHUB_ENV
- name: Install dependencies
run: |
python -m pip install --upgrade pip
make install_pipenv
- name: Build
run: |
make build
- name: Release Test-PyPI
uses: pypa/[email protected]
if: env.RC_RELEASE == 'true'
with:
user: __token__
skip_existing: true
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
verbose: true
- name: Release PyPI
uses: pypa/[email protected]
if: env.RC_RELEASE == 'false'
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true