Skip to content

Commit

Permalink
Update all GitHub Actions workflows to latest generator template
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffano committed Nov 3, 2024
1 parent f8fbb6a commit 896aa61
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 62 deletions.
3 changes: 0 additions & 3 deletions .github/actions/ci-action/Dockerfile

This file was deleted.

4 changes: 0 additions & 4 deletions .github/actions/ci-action/action.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/actions/ci-action/entrypoint.sh

This file was deleted.

19 changes: 15 additions & 4 deletions .github/workflows/ci-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,25 @@ name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
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
node-version: '22'
- uses: iamsauravsharma/create-dotenv@v2.0.1
with:
file-path: '/tmp/.env'
env:
GITHUB_ACTIONS: ${{ env.GITHUB_ACTIONS }}
- uses: cliffano/command-docker-action@v1.3.0
with:
command: 'make ci'
image: cliffano/studio:2.5.0
shell: bash
extra_path: /usr/local/go/bin:/usr/local/maven/bin:/usr/local/node/bin:/usr/local/openjdk-jdk/bin:/root/.cargo/bin:/root/go/bin
env_file: '/tmp/.env'
- run: npm install -g gh-pages
- run: CACHE_DIR=/tmp gh-pages --dist doc/ --user "pakkunbot <blah+pakkun@cliffano.com>" --repo "https://cliffano:${{ secrets.OAPICF_GITHUB_TOKEN }}@github.com/oapicf/openapi-iplocation.git"
- run: CACHE_DIR=/tmp gh-pages --dist doc/ --user "pakkunbot <blah+pakkun@cliffano.com>" --repo "https://cliffano:${{ secrets.OAPICF_GITHUB_TOKEN }}@github.com/oapicf/openapi-okta-ip-ranges.git"
4 changes: 2 additions & 2 deletions .github/workflows/publish-doc-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Publish API Documentation
- '*'
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -19,4 +19,4 @@ jobs:
CACHE_DIR=/tmp gh-pages --dist doc/ --user "pakkunbot
<blah+pakkun@cliffano.com>" --repo "https://cliffano:${{
secrets.OAPICF_GITHUB_TOKEN
}}@github.com/oapicf/openapi-iplocation.git"
}}@github.com/oapicf/openapi-okta-ip-ranges.git"
2 changes: 1 addition & 1 deletion .github/workflows/publish-javascript-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Publish JavaScript
- '*'
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-python-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Publish Python
- '*'
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-ruby-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Publish Ruby
- '*'
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
Expand Down
19 changes: 4 additions & 15 deletions .github/workflows/release-major-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,9 @@ name: Release Major
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: cliffano/release-action@v1.0.0
with:
token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: git config --global user.email "blah+pakkun@cliffano.com"
- 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 }}
release_type: 'major'
github_token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
19 changes: 4 additions & 15 deletions .github/workflows/release-minor-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,9 @@ name: Release Minor
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: cliffano/release-action@v1.0.0
with:
token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: git config --global user.email "blah+pakkun@cliffano.com"
- 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 }}
release_type: 'minor'
github_token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
17 changes: 3 additions & 14 deletions .github/workflows/release-patch-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,9 @@ name: Release Patch
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: cliffano/release-action@v1.0.0
with:
token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: git config --global user.email "blah+pakkun@cliffano.com"
- 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
release_type: 'patch'
github_token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
branch: ${{ github.ref }}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Changed
- Update all GitHub Actions workflows to latest generator template

## 1.1.0 - 2024-11-02
### Changed
- Upgrade Swaggy C to 4.8.0
Expand Down

0 comments on commit 896aa61

Please sign in to comment.