This repository has been archived by the owner on Mar 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* try new workflow * try new workflow2 * try new workflow3 * try new workflow4 * release 0.0.5 +u * update workflow5 +u * update workflow6 +u * update workflow7 +u * update workflow8 +u
- Loading branch information
CoolLoong
authored
Feb 23, 2023
1 parent
432d07f
commit 33fc99a
Showing
2 changed files
with
41 additions
and
5 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 |
---|---|---|
|
@@ -99,17 +99,53 @@ jobs: | |
mkdir $GITHUB_WORKSPACE/src | ||
mv $GITHUB_WORKSPACE/@LLSELib $GITHUB_WORKSPACE/src/@LLSELib | ||
- name: zip full plugin | ||
run: | | ||
cd src | ||
zip -r @LLSELib-full.zip @LLSELib | ||
cd .. | ||
- name: Archive LLSELib-full | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: LLSELib-full | ||
path: src/@LLSELib | ||
|
||
- name: compress | ||
uses: nizarmah/[email protected] | ||
with: | ||
overwrite: true | ||
directory: ./src/@LLSELib | ||
directory: src/@LLSELib | ||
js_engine: uglify-js | ||
|
||
- name: upload artifact | ||
- name: zip minify plugin | ||
run: | | ||
cd src | ||
rm -rf @LLSELib/jsconfig.json | ||
zip -r @LLSELib.zip @LLSELib | ||
cd .. | ||
- name: Archive LLSELib | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: LLSELib | ||
path: | | ||
src | ||
!**/jsconfig.json | ||
src/@LLSELib | ||
!**/jsconfig.json | ||
- name: Read version in plugin.yml | ||
id: plugin-data | ||
uses: CumulusDS/[email protected] | ||
with: | ||
file: src/@LLSELib/plugin.yml | ||
version: version | ||
|
||
- name: Release new version | ||
uses: ncipollo/release-action@v1 | ||
if: github.event_name == 'push' && contains(github.ref_name, 'master') && contains(github.event.commits[0].message, '+u') | ||
with: | ||
artifacts: "src/@LLSELib-full.zip,src/@LLSELib.zip" | ||
tag: ${{ steps.plugin-data.outputs.version }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit: ${{ github.ref_name }} | ||
allowUpdates: true |
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