Create Github Release for OpenAPI Spec #11
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: 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: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ steps.get_access_token.outputs.token }} | |
| - name: Set up Node environment | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Perform release | |
| run: npx --package @semantic-release/exec --package conventional-changelog-conventionalcommits semantic-release | |
| env: | |
| GH_TOKEN: ${{ steps.get_access_token.outputs.token }} |