This repository was archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
70 lines (68 loc) · 2.15 KB
/
publish-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Generate new release
on:
push:
tags:
- "v*"
jobs:
build:
strategy:
matrix:
target:
- arch: arm64
os: macOS
runner: macos-latest
- arch: intel
os: macOS
runner: macos-13
- arch: x64
os: Linux
runner: ubuntu-latest
- arch: x64
os: Windows
runner: windows-latest
runs-on: ${{ matrix.target.runner }}
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
PUPPETEER_DOWNLOAD_BASE_URL: https://storage.googleapis.com/chrome-for-testing-public
- name: Update GeoIP database
run: npm run updateGeoIPData
env:
LICENSE_KEY: ${{ secrets.GEOIP_LICENSE_KEY }}
- name: Generate ZIP files for ${{ matrix.target.os }} ${{ matrix.target.arch }}
run: ./scripts/create-zips.sh ${{ matrix.target.os }} ${{ matrix.target.arch }}
shell: bash
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target.os }}-${{ matrix.target.arch }}
path: "*.zip"
publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "*/*.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 }}