Skip to content

Commit

Permalink
fix: actions
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Jan 30, 2022
1 parent 4b427c2 commit 4eec3fa
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
push:
tags:
- v*
branches: [ master ]
branches: [ master, actions ]
# pull_request:
# branches: [ master ]
# # Allows you to run this workflow manually from the Actions tab
Expand All @@ -33,37 +33,32 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Build

- name: Prepare
run: |
pwd
ls -l
chmod 777 docker/entrypoint
chmod 777 tools/*
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
if: startsWith(github.ref, 'refs/tags/')
run: |
sudo rm -rf cache tmp
cd ../
mv wechat-devtools '${{ env.name }}'
mkdir -p wechat-devtools
mv '${{ env.name }}' wechat-devtools
mkdir ${{ env. name }}
find -maxdepth 1 -not -name ${{ env.name }} -not -name . -exec mv {} ${{ env.name }} \;
ls -l
env:
name: 'release-${{ github.ref_name }}'

- name: Release
uses: Wandalen/wretry.action@v1.0.11
uses: fnkr/github-action-ghr@v1
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:
GHR_COMPRESS: xz
GHR_PATH: /github/workspace
GHR_PATH: .
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4eec3fa

Please sign in to comment.