Create autorelease.yml
This commit is contained in:
parent
5f29a7533b
commit
09c932289b
35
.github/workflows/autorelease.yml
vendored
Normal file
35
.github/workflows/autorelease.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# This is a basic workflow to help you get started with the GitHub Auto-Release on Commit Action.
|
||||||
|
|
||||||
|
name: AutoRelease
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
|
||||||
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
|
jobs:
|
||||||
|
# This workflow contains a single job called "build"
|
||||||
|
release:
|
||||||
|
# The type of runner that the job will run on
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '18.x'
|
||||||
|
cache: 'yarn'
|
||||||
|
- name: Install dependencies NUI
|
||||||
|
run: cd web && yarn install --frozen-lockfile
|
||||||
|
- name: Build Bundles
|
||||||
|
run: yarn build
|
||||||
|
- uses: CupOfTea696/gh-action-auto-release@v1.0.0
|
||||||
|
with:
|
||||||
|
title: 'Release: $version'
|
||||||
|
tag: 'v$semver'
|
||||||
|
draft: false
|
||||||
|
regex: '/^Release: #{semver}$/i'
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue
Block a user