mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
fix: actions
This commit is contained in:
parent
4b427c2855
commit
4eec3fa256
29
.github/workflows/release.yml
vendored
29
.github/workflows/release.yml
vendored
@ -9,7 +9,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- v*
|
- v*
|
||||||
branches: [ master ]
|
branches: [ master, actions ]
|
||||||
# pull_request:
|
# pull_request:
|
||||||
# branches: [ master ]
|
# branches: [ master ]
|
||||||
# # Allows you to run this workflow manually from the Actions tab
|
# # Allows you to run this workflow manually from the Actions tab
|
||||||
@ -33,37 +33,32 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- name: Build
|
|
||||||
|
- name: Prepare
|
||||||
run: |
|
run: |
|
||||||
pwd
|
pwd
|
||||||
ls -l
|
ls -l
|
||||||
chmod 777 docker/entrypoint
|
chmod 777 docker/entrypoint
|
||||||
chmod 777 tools/*
|
chmod 777 tools/*
|
||||||
export ACTION_MODE=true
|
export ACTION_MODE=true
|
||||||
tools/setup-wechat-devtools-node
|
npm install nw-gyp -g
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: tools/setup-wechat-devtools-node
|
||||||
|
|
||||||
- name: Delete unused file
|
- name: Delete unused file
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
run: |
|
run: |
|
||||||
sudo rm -rf cache tmp
|
sudo rm -rf cache tmp
|
||||||
cd ../
|
mkdir ${{ env. name }}
|
||||||
mv wechat-devtools '${{ env.name }}'
|
find -maxdepth 1 -not -name ${{ env.name }} -not -name . -exec mv {} ${{ env.name }} \;
|
||||||
mkdir -p wechat-devtools
|
ls -l
|
||||||
mv '${{ env.name }}' wechat-devtools
|
|
||||||
env:
|
env:
|
||||||
name: 'release-${{ github.ref_name }}'
|
name: 'release-${{ github.ref_name }}'
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: Wandalen/wretry.action@v1.0.11
|
uses: fnkr/github-action-ghr@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
|
||||||
action: fnkr/github-action-ghr@v1
|
|
||||||
with: |
|
|
||||||
node-version: 14.x
|
|
||||||
architecture: x64
|
|
||||||
attempt_limit: 3
|
|
||||||
attempt_delay: 2000
|
|
||||||
env:
|
env:
|
||||||
GHR_COMPRESS: xz
|
GHR_COMPRESS: xz
|
||||||
GHR_PATH: /github/workspace
|
GHR_PATH: .
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user