Skip to content

Commit

Permalink
chore: Adds create release on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubax committed Mar 15, 2024
1 parent fe6c4dd commit 72edae1
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 64 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/matrix-test.yaml

This file was deleted.

78 changes: 55 additions & 23 deletions .github/workflows/task-6.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,67 @@
name: task-6-workflow
run-name: Task 6 workflow
on:
push
push:
tags:
- desktop-app-**

defaults:
run:
working-directory: desktop-app
jobs:
deploy-website:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-14]
runs-on: ${{ matrix.os }}
# 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 }}-build
# path: desktop-app/out
# retention-days: 1

# create-release:
# needs: deploy-website
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - 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:

create-fast-release:
needs: deploy-website
runs-on: ubuntu-latest
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@v2
- name: Create release
uses: softprops/action-gh-release@v2
with:
name: ${{ matrix.os }}-build
path: desktop-app/out
retention-days: 1
body: This is release

0 comments on commit 72edae1

Please sign in to comment.