Release app #6
This file contains 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: Release app | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: | |
[ | |
{ name: 'windows', image: 'windows-latest' }, | |
{ name: 'macos-arm', image: 'macos-latest' }, | |
{ name: 'macos-x86', image: 'macos-latest-large' } | |
] | |
runs-on: ${{ matrix.os.image }} | |
steps: | |
- name: Github checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- run: npm ci | |
env: | |
VITE_CLOUDANT_URL: ${{ secrets.VITE_CLOUDANT_URL }} | |
VITE_CLOUDANT_API_KEY: ${{ secrets.VITE_CLOUDANT_API_KEY }} | |
- name: Package app | |
env: | |
VITE_CLOUDANT_URL: ${{ secrets.VITE_CLOUDANT_URL }} | |
VITE_CLOUDANT_API_KEY: ${{ secrets.VITE_CLOUDANT_API_KEY }} | |
run: npm run package | |
- name: Make app | |
env: | |
VITE_CLOUDANT_URL: ${{ secrets.VITE_CLOUDANT_URL }} | |
VITE_CLOUDANT_API_KEY: ${{ secrets.VITE_CLOUDANT_API_KEY }} | |
run: npm run make | |
- name: Publish app | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: npm run publish |