-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 41db90a.
- Loading branch information
Showing
6 changed files
with
1,373 additions
and
37 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
name: Release | ||
name: Publish Build | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version' | ||
required: true | ||
default: '' | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
|
||
jobs: | ||
master: | ||
if: "startsWith(github.event.head_commit.message, '[Release]')" | ||
runs-on: ubuntu-22.04 | ||
name: Build and publish | ||
steps: | ||
|
@@ -34,18 +33,16 @@ jobs: | |
- name: Install dependencies and build | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
VERSION: ${{ github.event.inputs.version }} | ||
run: | | ||
yarn install | ||
yarn set-version ${{ VERSION }} | ||
yarn publish:${{ steps.input_data.outputs.target }} | ||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
author_name: Github-Bot | ||
author_email: [email protected] | ||
message: 'Release version ${{ VERSION }}' | ||
message: 'Update data after publish:${{ steps.input_data.outputs.target }}' | ||
|
||
- name: Notify to Discord | ||
uses: sarisia/actions-status-discord@v1 | ||
|
@@ -57,4 +54,4 @@ jobs: | |
title: ${{ github.workflow }} | ||
description: | | ||
The deployment has been completed. | ||
Release version ${{ VERSION }} | ||
Commit message: ${{ github.event.head_commit.message }} |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.