From a098177b7d3ec2292b1d3c3a666b671af65dd684 Mon Sep 17 00:00:00 2001 From: Raimundo Henriques Date: Wed, 20 Dec 2023 12:09:09 +0000 Subject: [PATCH] feat: add workflow to automate release --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++ spec/release.sh | 12 ++++++++++ spec/v2/diagrams/authentication-flow.svg | 1 + spec/v2/index.bs | 2 +- 4 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml create mode 100644 spec/release.sh create mode 100644 spec/v2/diagrams/authentication-flow.svg diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..04abe2f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: Release + +on: + push: + branches: [ automate-release ] +# pull_request: +# branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: creates release + run: sh ./spec/release.sh # some command from your repository that creates + # output to "source-directory" ("output" in the example) + - name: Pushes to another repository + uses: cpina/github-action-push-to-another-repository@main + env: + SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} + with: + source-directory: 'output' + destination-github-username: 'wbcsd' + destination-repository-name: 'tr' + user-email: + target-directory: ./temp + target-branch: automated-release-test + create-target-branch-if-needed: true diff --git a/spec/release.sh b/spec/release.sh new file mode 100644 index 0000000..f6526c2 --- /dev/null +++ b/spec/release.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +cd spec/v2 +pip3 install bikeshed && bikeshed update +make +mkdir -p ../release/diagrams + +for i in diagrams/*.svg; do + cp $i ../release/diagrams/ +done + +cp index.html ../release/ diff --git a/spec/v2/diagrams/authentication-flow.svg b/spec/v2/diagrams/authentication-flow.svg new file mode 100644 index 0000000..c3d10f0 --- /dev/null +++ b/spec/v2/diagrams/authentication-flow.svg @@ -0,0 +1 @@ +Host systemData recipientHost systemData recipientRecipient uses token_endpoint as AuthEndpointRecipient uses regular AuthEndpoint:[AuthHostname]/[AuthSubpath]/auth/tokenalt[OpenID Connect-enabled authentication workflow]GET [AuthHostname]/[AuthSubpath]/.well-known/openid-configurationHost system returns valid OpenID Connect documentAny Error response or invalid OpenID Connect documentAuthentication flow against AuthEndpointResponse as specified in `Action Authenticate` \ No newline at end of file diff --git a/spec/v2/index.bs b/spec/v2/index.bs index 7c01874..f3746ba 100644 --- a/spec/v2/index.bs +++ b/spec/v2/index.bs @@ -2238,7 +2238,7 @@ date: Mon, 23 May 2022 19:33:16 GMT content-type: application/json content-length: 1831 server: Pathfinder -link: <https://api.pathfinder.sine.dev/2/footprints?limit=10&offset=10>; rel="next" +link: <https://api.pathfinder.sine.dev/2/footprints?limit=10&offset=10>; rel="next" Example response body: