Vector v0.3.3 #3
Workflow file for this run
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: 'ahqstore' | |
| on: | |
| release: | |
| types: [released] | |
| jobs: | |
| ahqstore-manifest: | |
| # Only run for full releases (not drafts, not pre-releases) | |
| if: "!github.event.release.draft && !github.event.release.prerelease" | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - name: Generate AHQ Store manifest | |
| run: node .ahqstore/generate-manifest.mjs --tag ${{ github.event.release.tag_name }} --output ahqstore.json --token ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload manifest to release | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh release upload ${{ github.event.release.tag_name }} ahqstore.json --repo ${{ github.repository }} --clobber | |
| - name: Notify AHQ Store bot | |
| env: | |
| GH_TOKEN: ${{ secrets.AHQSTORE_PAT }} | |
| run: | | |
| gh issue comment 29 \ | |
| --repo ahqstore/repo_community \ | |
| --body "/store set https://github.com/${{ github.repository }}/releases/download/${{ github.event.release.tag_name }}/ahqstore.json" |