Skip to content

Commit

Permalink
ci: revert to old
Browse files Browse the repository at this point in the history
  • Loading branch information
CanadaHonk committed Dec 2, 2022
1 parent ec50828 commit e1bd891
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Pack base asar
run: |
npm i -g asar
sed -i -e "s/oaVersion = '\(.*\)'/oaVersion = '\1-$(git rev-parse HEAD | cut -c 1-7)'/" src/index.js
sed -i -e "s/nightly/nightly-$(git rev-parse HEAD | cut -c 1-7)/" src/index.js
node scripts/strip.js
npx asar pack src app.asar
Expand Down Expand Up @@ -145,16 +145,15 @@ jobs:
- name: GitHub Release
run: |
echo ${{ env.VERSION }}
git tag -d ${{ env.VERSION }} || true
git push origin --delete ${{ env.VERSION }} || true
git tag ${{ env.VERSION }}
git push origin ${{ env.VERSION }}
git tag -d nightly || true
git push origin --delete nightly || true
git tag nightly
git push origin nightly
gh release delete ${{ env.VERSION }} -y || true
gh release create ${{ env.VERSION }} -t "$(echo "${{ env.VERSION }}" | sed 's/.*/\u&/' | sed "s/nt/n't/")" -n "$(git rev-parse HEAD | cut -c 1-7) | $(git log -1 --pretty=%B)" "$([ "${{ env.VERSION }}" != "nightly" ] && echo "-p")" ${{ env.FILES }}
gh release create ${{ env.VERSION }} -t "Nightly" -n "$(git rev-parse HEAD | cut -c 1-7) | $(git log -1 --pretty=%B)" ${{ env.FILES }}
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
VERSION: $(strings app.asar | grep -oP "oaVersion='.*?-" | grep -oP "(?<=').*?(?=-)")
VERSION: 'nightly'
FILES: app.asar

# debug-linux:
Expand Down

0 comments on commit e1bd891

Please sign in to comment.