Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

chore(main): release 2.10.1 #54

chore(main): release 2.10.1

chore(main): release 2.10.1 #54

Workflow file for this run

name: Generate new release
on:
push:
tags:
- "v*"
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
env:
PUPPETEER_CACHE_DIR: ${{ github.workspace }}/dist/puppeteer
- name: Update GeoIP database
run: npm run updateGeoIPData
env:
LICENSE_KEY: ${{ secrets.GEOIP_LICENSE_KEY }}
- name: Generate ZIP files for Linux
run: ./scripts/create-zips.sh Linux x64
- uses: actions/upload-artifact@v4
with:
name: linux
path: "*.zip"
build-mac:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
env:
PUPPETEER_CACHE_DIR: ${{ github.workspace }}/dist/puppeteer
- name: Update GeoIP database
run: npm run updateGeoIPData
env:
LICENSE_KEY: ${{ secrets.GEOIP_LICENSE_KEY }}
- name: Generate ZIP files for macOS
run: ./scripts/create-zips.sh macOS intel
shell: bash
- uses: actions/upload-artifact@v4
with:
name: mac
path: "*.zip"
build-win:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
env:
PUPPETEER_CACHE_DIR: ${{ github.workspace }}/dist/puppeteer
- name: Update GeoIP database
run: npm run updateGeoIPData
env:
LICENSE_KEY: ${{ secrets.GEOIP_LICENSE_KEY }}
- name: Generate ZIP files for Windows
run: ./scripts/create-zips.sh Windows x64
shell: bash
- uses: actions/upload-artifact@v4
with:
name: win
path: "*.zip"
publish:
needs:
- build-linux
- build-mac
- build-win
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "linux/*.zip,mac/*.zip,win/*.zip"
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Notify to design-modello-comuni
uses: italia/[email protected]
with:
channel_id: ${{ secrets.SLACK_CHANNEL_COMUNI }}
project_name: App valutazione modelli
slack_token: ${{ secrets.SLACK_TOKEN }}
- name: Notify to design-modello-scuole
uses: italia/[email protected]
with:
channel_id: ${{ secrets.SLACK_CHANNEL_SCUOLE }}
project_name: App valutazione modelli
slack_token: ${{ secrets.SLACK_TOKEN }}