Publish release with GitHub actions.

This commit is contained in:
kovacsv 2022-05-27 16:51:46 +02:00
parent 92045b8f4b
commit 7992ad8eb2
3 changed files with 32 additions and 28 deletions

27
.github/workflows/release_publish.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Release Publish
on:
push:
tags:
- '*'
jobs:
build:
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run create_dist
- uses: ncipollo/release-action@v1
with:
artifacts: "build\final\package\*"
bodyFile: ".github/workflows/release_template.md"
draft: true
token: ${{ secrets.GITHUB_TOKEN }}

5
.github/workflows/release_template.md vendored Normal file
View File

@ -0,0 +1,5 @@
Website news:
-
Engine news:
-

View File

@ -1,28 +0,0 @@
version: "{build}"
environment:
nodejs_version: "15"
python_path: "C:\\Python38-x64"
install:
- ps: Install-Product node $env:nodejs_version
- set PATH=%python_path%;%python_path%\\Scripts;%PATH%
- npm install
build_script:
- npm run lint
- npm run test
- npm run create_package
artifacts:
- path: build\final\package\*
deploy:
description: 'News:\n- ...'
provider: GitHub
auth_token:
secure: oN14X2NG9+1O6cVQ7m2pIUkMxJ4mbZC1oht03WtJPS4E03MfPH8wZYAw9vmkSL9H
draft: true
on:
branch: master
APPVEYOR_REPO_TAG: true