This repository was archived by the owner on Dec 5, 2024. It is now read-only.
chore(main): release 2.11.3 #61
Workflow file for this run
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: 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 }} |