Create Github Release for OpenAPI Spec #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |