Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pakkunbot committed Nov 5, 2024
0 parents commit ec1973f
Show file tree
Hide file tree
Showing 587 changed files with 11,433 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/ci-action/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM cliffano/studio
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
4 changes: 4 additions & 0 deletions .github/actions/ci-action/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: 'CI'
runs:
using: 'docker'
image: 'Dockerfile'
2 changes: 2 additions & 0 deletions .github/actions/ci-action/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
make ci
3 changes: 3 additions & 0 deletions .github/actions/publish-javascript-action/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM cliffano/studio
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh", "$NPMJS_TOKEN"]
4 changes: 4 additions & 0 deletions .github/actions/publish-javascript-action/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: 'Publish JavaScript'
runs:
using: 'docker'
image: 'Dockerfile'
11 changes: 11 additions & 0 deletions .github/actions/publish-javascript-action/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
export NODE_AUTH_TOKEN="${NPMJS_TOKEN}"
make clean deps init-spec generate-primary build-javascript test-javascript

rm -f ~/.npmrc && touch ~/.npmrc
echo "Provisioning npm config..."
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
echo "always-auth=true" >> ~/.npmrc

make --environment-overrides publish-javascript
3 changes: 3 additions & 0 deletions .github/actions/publish-python-action/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM cliffano/studio
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh", "$PYPI_TOKEN"]
4 changes: 4 additions & 0 deletions .github/actions/publish-python-action/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: 'Publish Python'
runs:
using: 'docker'
image: 'Dockerfile'
9 changes: 9 additions & 0 deletions .github/actions/publish-python-action/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
make clean deps init-spec generate-primary build-python test-python

rm -f ~/.pypirc && touch ~/.pypirc
echo "[pypi]" > ~/.pypirc
echo "username = __token__" >> ~/.pypirc
echo "password = ${PYPI_TOKEN}" >> ~/.pypirc

make publish-python
3 changes: 3 additions & 0 deletions .github/actions/publish-ruby-action/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM cliffano/studio
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh", "$RUBYGEMS_TOKEN"]
4 changes: 4 additions & 0 deletions .github/actions/publish-ruby-action/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: 'Publish Ruby'
runs:
using: 'docker'
image: 'Dockerfile'
12 changes: 12 additions & 0 deletions .github/actions/publish-ruby-action/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
make clean deps init-spec generate-primary build-ruby test-ruby

rm -f ~/.gem/credentials
rm -rf ~/.gem/ && mkdir -p ~/.gem/
touch ~/.gem/credentials

echo "---" > ~/.gem/credentials
echo ":rubygems_api_key: ${RUBYGEMS_TOKEN}" >> ~/.gem/credentials
chmod 0600 ~/.gem/credentials

make publish-ruby
16 changes: 16 additions & 0 deletions .github/workflows/ci-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: ./.github/actions/ci-action
- run: npm install -g gh-pages
- run: CACHE_DIR=/tmp gh-pages --dist doc/ --user "pakkunbot <[email protected]>" --repo "https://cliffano:${{ secrets.OAPICF_GITHUB_TOKEN }}@github.com/oapicf/openapi-azureipranges.git"
21 changes: 21 additions & 0 deletions .github/workflows/publish-doc-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish API Documentation
'on':
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
ref: main
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: make deps init-spec doc-latest doc-version
- run: >-
CACHE_DIR=/tmp gh-pages --dist doc/ --user "pakkunbot
<[email protected]>" --repo "https://cliffano:${{
secrets.OAPICF_GITHUB_TOKEN }}@github.com/oapicf/openapi-azureipranges.git"
15 changes: 15 additions & 0 deletions .github/workflows/publish-javascript-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Publish JavaScript
'on':
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- uses: ./.github/actions/publish-javascript-action
env:
NPMJS_TOKEN: ${{ secrets.NPMJS_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/publish-python-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Publish Python
'on':
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- uses: ./.github/actions/publish-python-action
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/publish-ruby-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Publish Ruby
'on':
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- uses: ./.github/actions/publish-ruby-action
env:
RUBYGEMS_TOKEN: ${{ secrets.RUBYGEMS_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/release-major-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Release Major
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "pakkunbot"
- run: npm install -g rtk
- run: rtk release --release-increment-type major
- uses: ad-m/github-push-action@master
with:
tags: true
github_token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
branch: ${{ github.ref }}
22 changes: 22 additions & 0 deletions .github/workflows/release-minor-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Release Minor
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "pakkunbot"
- run: npm install -g rtk
- run: rtk release --release-increment-type minor
- uses: ad-m/github-push-action@master
with:
tags: true
github_token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
branch: ${{ github.ref }}
22 changes: 22 additions & 0 deletions .github/workflows/release-patch-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Release Patch
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "pakkunbot"
- run: npm install -g rtk
- run: rtk release --release-increment-type patch
- uses: ad-m/github-push-action@master
with:
tags: true
github_token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
branch: ${{ github.ref }}
Loading

0 comments on commit ec1973f

Please sign in to comment.