Merge pull request #5 from elek-io/changeset-release/main #21
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: CD | |
on: | |
push: | |
tags: | |
- v*.*.* | |
jobs: | |
release: | |
name: Preparing new release on ${{ matrix.platform }} with Node.js ${{ matrix.node-version }} | |
timeout-minutes: 20 | |
strategy: | |
matrix: | |
# @see https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories | |
# macos-12 = intel | |
# macos-14 = M1 (arm) | |
platform: [ubuntu-22.04, macos-12, macos-14, windows-2022] | |
node-version: [20] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup Node.js ${{ matrix.node-version }} environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm install | |
# - name: Run linter | |
# run: npm run lint | |
- name: Build | |
run: npm run build | |
- name: Create release draft | |
uses: softprops/action-gh-release@v2 | |
with: | |
draft: true | |
body_path: ${{ github.workspace }}/CHANGELOG.md | |
files: | | |
dist/*.exe | |
dist/*.zip | |
dist/*.dmg | |
dist/*.AppImage | |
dist/*.snap | |
dist/*.deb | |
dist/*.rpm | |
dist/*.tar.gz | |
dist/*.yml | |
dist/*.blockmap | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |