Skip to content

Task 6 workflow

Task 6 workflow #16

Workflow file for this run

name: task-6-workflow
run-name: Task 6 workflow
on:
push:
tags:
- desktop-app-**
permissions:
contents: write
defaults:
run:
working-directory: desktop-app
jobs:
deploy-website:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-14]
runs-on: ${{ matrix.os }}
outputs:
build-artifact: ${{ steps.archive-build.outputs.artifact }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js LTS
uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "npm"
cache-dependency-path: desktop-app
- name: Install dependencies
run: npm install
- name: Build the app
run: npm run make
- name: List files
run: ls
- name: archive build
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os == 'macos-14' && 'macos-arm' || matrix.os }}-release
path: desktop-app/out/calculator-*
retention-days: 1
create-release:
needs: deploy-website
runs-on: ubuntu-latest
run:

Check failure on line 47 in .github/workflows/task-6.yaml

View workflow run for this annotation

GitHub Actions / task-6-workflow

Invalid workflow file

The workflow is not valid. .github/workflows/task-6.yaml (Line: 47, Col: 5): Unexpected value 'run'
working-directory: .
steps:
- name: Download builds
uses: actions/download-artifact@v4
with:
path: release
- name: List files
run: ls -Rl
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: |
release/macos-arm-release
release/macos-latest-release
release/ubuntu-latest-release
release/windows-latest-release