chore: v2.0.0 (#2160)

This commit is contained in:
Alex Varchuk 2022-09-13 15:11:20 +03:00 committed by GitHub
parent 6f6a3f0a36
commit 5fb4daa618
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 44 deletions

View File

@ -3,46 +3,46 @@ on:
release: release:
types: [published] types: [published]
jobs: jobs:
push_to_registry: # push_to_registry:
name: Push Docker image to GitHub Packages # name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest # runs-on: ubuntu-latest
permissions: # permissions:
packages: write # packages: write
contents: read # contents: read
steps: # steps:
- name: Check out the repo # - name: Check out the repo
uses: actions/checkout@v3 # uses: actions/checkout@v3
- name: Login to GitHub Container Registry # - name: Login to GitHub Container Registry
uses: docker/login-action@v1 # uses: docker/login-action@v1
with: # with:
registry: ghcr.io # registry: ghcr.io
username: ${{ github.repository_owner }} # username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} # password: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare # - name: Prepare
id: prep # id: prep
run: | # run: |
DOCKER_IMAGE=ghcr.io/redocly/redoc/cli # DOCKER_IMAGE=ghcr.io/redocly/redoc/cli
VERSION=edge # VERSION=edge
if [[ $GITHUB_REF == refs/tags/* ]]; then # if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/} # VERSION=${GITHUB_REF#refs/tags/}
elif [[ $GITHUB_REF == refs/heads/* ]]; then # elif [[ $GITHUB_REF == refs/heads/* ]]; then
VERSION=$(echo ${GITHUB_REF#refs/heads/} | sed -r 's#/+#-#g') # VERSION=$(echo ${GITHUB_REF#refs/heads/} | sed -r 's#/+#-#g')
elif [[ $GITHUB_REF == refs/pull/* ]]; then # elif [[ $GITHUB_REF == refs/pull/* ]]; then
VERSION=pr-${{ github.event.number }} # VERSION=pr-${{ github.event.number }}
fi # fi
TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:latest" # TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:latest"
if [ "${{ github.event_name }}" = "push" ]; then # if [ "${{ github.event_name }}" = "push" ]; then
TAGS="$TAGS,${DOCKER_IMAGE}:sha-${GITHUB_SHA::8}" # TAGS="$TAGS,${DOCKER_IMAGE}:sha-${GITHUB_SHA::8}"
fi # fi
echo ::set-output name=version::${VERSION} # echo ::set-output name=version::${VERSION}
echo ::set-output name=tags::${TAGS} # echo ::set-output name=tags::${TAGS}
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') # echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
- name: Push to GitHub Packages # - name: Push to GitHub Packages
uses: docker/build-push-action@v3 # uses: docker/build-push-action@v3
with: # with:
context: ./cli # context: ./cli
push: ${{ github.event_name != 'pull_request' }} # push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.prep.outputs.tags }} # tags: ${{ steps.prep.outputs.tags }}
dockerhub: dockerhub:
name: Publish redoc image to DockerHub name: Publish redoc image to DockerHub
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -1,3 +1,7 @@
# [2.0.0](https://github.com/Redocly/redoc/compare/v2.0.0-rc.77...v2.0.0) (2022-09-12)
# [2.0.0-rc.77](https://github.com/Redocly/redoc/compare/v2.0.0-rc.76...v2.0.0-rc.77) (2022-09-06) # [2.0.0-rc.77](https://github.com/Redocly/redoc/compare/v2.0.0-rc.76...v2.0.0-rc.77) (2022-09-06)

View File

@ -3,7 +3,7 @@
# Generate interactive API documentation from OpenAPI definitions # Generate interactive API documentation from OpenAPI definitions
[![Build Status](https://travis-ci.com/Redocly/redoc.svg?branch=main)](https://travis-ci.com/Redocly/redoc) [![Coverage Status](https://coveralls.io/repos/Redocly/redoc/badge.svg?branch=main&service=github)](https://coveralls.io/github/Redocly/redoc?branch=main) [![npm](http://img.shields.io/npm/v/redoc.svg)](https://www.npmjs.com/package/redoc) [![License](https://img.shields.io/npm/l/redoc.svg)](https://github.com/Redocly/redoc/blob/main/LICENSE) [![Coverage Status](https://coveralls.io/repos/Redocly/redoc/badge.svg?branch=main&service=github)](https://coveralls.io/github/Redocly/redoc?branch=main) [![npm](http://img.shields.io/npm/v/redoc.svg)](https://www.npmjs.com/package/redoc) [![License](https://img.shields.io/npm/l/redoc.svg)](https://github.com/Redocly/redoc/blob/main/LICENSE)
[![bundle size](http://img.badgesize.io/https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js?compression=gzip&max=300000)](https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js) [![npm](https://img.shields.io/npm/dm/redoc.svg)](https://www.npmjs.com/package/redoc) [![](https://data.jsdelivr.com/v1/package/npm/redoc/badge)](https://www.jsdelivr.com/package/npm/redoc) [![Docker Build Status](https://img.shields.io/docker/build/redocly/redoc.svg)](https://hub.docker.com/r/redocly/redoc/) [![bundle size](http://img.badgesize.io/https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js?compression=gzip&max=300000)](https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js) [![npm](https://img.shields.io/npm/dm/redoc.svg)](https://www.npmjs.com/package/redoc) [![](https://data.jsdelivr.com/v1/package/npm/redoc/badge)](https://www.jsdelivr.com/package/npm/redoc) [![Docker Build Status](https://img.shields.io/docker/build/redocly/redoc.svg)](https://hub.docker.com/r/redocly/redoc/)
</div> </div>

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "redoc", "name": "redoc",
"version": "2.0.0-rc.77", "version": "2.0.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "redoc", "name": "redoc",
"version": "2.0.0-rc.77", "version": "2.0.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@redocly/openapi-core": "^1.0.0-beta.104", "@redocly/openapi-core": "^1.0.0-beta.104",

View File

@ -1,6 +1,6 @@
{ {
"name": "redoc", "name": "redoc",
"version": "2.0.0-rc.77", "version": "2.0.0",
"description": "ReDoc", "description": "ReDoc",
"repository": { "repository": {
"type": "git", "type": "git",