.github/workflows/main.yml #12
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
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" | |