Skip to content

.github/workflows/main.yml #14

.github/workflows/main.yml

.github/workflows/main.yml #14

Workflow file for this run

on:
create:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: |
CI=false yarn install
- name: Build
run: |
CI=false yarn build
- name: Zip build
run: |
zip -r build.zip build/
- name: Create Release
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
body: 'the first working with build.zip artifact' # TODO: changelog, and build only on tag
draft: false
prerelease: false
artifact: "build.zip"