Skip to content

Create Github Release for OpenAPI Spec #8

Create Github Release for OpenAPI Spec

Create Github Release for OpenAPI Spec #8

name: Create Github Release for OpenAPI Spec
on:
workflow_dispatch:
jobs:
create-github-release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node environment
uses: actions/setup-node@v4
with:
node-version: 20
- name: Get github app access token
id: get_access_token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.XERO_PUBLIC_APP_ID }}
private-key: ${{ secrets.XERO_PUBLIC_BOT_KEY }}
- name: Perform release
run: npx --package @semantic-release/exec semantic-release
env:
GH_TOKEN: ${{ steps.get_access_token.outputs.token }}