Release app #20
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-13' } | |
] | |
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_USERNAME: ${{ secrets.VITE_CLOUDANT_USERNAME }} | |
VITE_CLOUDANT_PASSWORD: ${{ secrets.VITE_CLOUDANT_PASSWORD }} | |
VITE_APP_PASSWORD: ${{ secrets.VITE_APP_PASSWORD }} | |
- name: Package app | |
env: | |
VITE_CLOUDANT_URL: ${{ secrets.VITE_CLOUDANT_URL }} | |
VITE_CLOUDANT_USERNAME: ${{ secrets.VITE_CLOUDANT_USERNAME }} | |
VITE_CLOUDANT_PASSWORD: ${{ secrets.VITE_CLOUDANT_PASSWORD }} | |
VITE_APP_PASSWORD: ${{ secrets.VITE_APP_PASSWORD }} | |
run: npm run package | |
- name: Make app | |
env: | |
VITE_CLOUDANT_URL: ${{ secrets.VITE_CLOUDANT_URL }} | |
VITE_CLOUDANT_USERNAME: ${{ secrets.VITE_CLOUDANT_USERNAME }} | |
VITE_CLOUDANT_PASSWORD: ${{ secrets.VITE_CLOUDANT_PASSWORD }} | |
VITE_APP_PASSWORD: ${{ secrets.VITE_APP_PASSWORD }} | |
run: npm run make | |
- name: Publish app | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
VITE_CLOUDANT_URL: ${{ secrets.VITE_CLOUDANT_URL }} | |
VITE_CLOUDANT_USERNAME: ${{ secrets.VITE_CLOUDANT_USERNAME }} | |
VITE_CLOUDANT_PASSWORD: ${{ secrets.VITE_CLOUDANT_PASSWORD }} | |
VITE_APP_PASSWORD: ${{ secrets.VITE_APP_PASSWORD }} | |
run: npm run publish |