Skip to content

Commit f084faf

Browse files
committed
maybe it woks?
1 parent 4787857 commit f084faf

File tree

1 file changed

+55
-59
lines changed

1 file changed

+55
-59
lines changed

.github/workflows/deployments.yml

Lines changed: 55 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -10,72 +10,68 @@ jobs:
1010
env:
1111
NPM_DEBUG_LEVEL: silent
1212
DEBUG: electron-packager
13+
1314
runs-on: ubuntu-latest
15+
1416
steps:
1517
- uses: actions/checkout@v2
1618
- uses: actions/setup-node@v1
1719
with:
1820
node-version: '12'
19-
# - run: npm install -g coffee-script
20-
# - run: npm ci
21+
- run: npm install -g coffee-script
22+
- run: npm ci
2123
- name: env_variables
2224
id: env-variables
2325
run: echo "::set-output name=version::$(node -e "console.log(require('./package.json').version);")"
24-
- name: test_env
26+
- run: |
27+
# install wine 32-bit architecture
28+
sudo dpkg --add-architecture i386
29+
sudo apt-get -qq update
30+
sudo rm /var/lib/dpkg/lock
31+
sudo apt-get install -y -qq wine-stable zip xvfb fakeroot
32+
wine wineboot --init # WINEARCH=win32
33+
- run: npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:linux-x64
34+
- run: npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:linux-arm64
35+
- run: npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:linux-ia32
36+
- run: npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:darwin-x64
37+
- run: npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:darwin-arm64
38+
- run: xvfb-run npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:win32
39+
#- run: |
40+
# # dependencies for RPM, DEB and Pacman binaries
41+
# # install fpm
42+
# sudo gem install --no-document fpm
43+
# # needed to deploy on rpm / pacman
44+
# sudo apt-get install -y -qq rpm libarchive-tools
45+
# build rpm, deb and pacman
46+
#- run: npm run -loglevel ${NPM_DEBUG_LEVEL} gulp deploy:linux-x64:rpm:nodep
47+
#- run: npm run -loglevel ${NPM_DEBUG_LEVEL} gulp deploy:linux-x64:deb:nodep
48+
#- run: npm run -loglevel ${NPM_DEBUG_LEVEL} gulp deploy:linux-x64:pacman:nodep
49+
#- run: npm run -loglevel ${NPM_DEBUG_LEVEL} gulp deploy:linux-ia32:rpm:nodep
50+
#- run: npm run -loglevel ${NPM_DEBUG_LEVEL} gulp deploy:linux-ia32:deb:nodep
51+
#- run: npm run -loglevel ${NPM_DEBUG_LEVEL} gulp deploy:linux-ia32:pacman:nodep
52+
#
53+
- name: Create Release
54+
id: create_release
55+
uses: actions/create-release@v1
2556
env:
26-
YAKYAK_TMP: ${{ steps.env-variables.env.YAKYAK_VERSION }}
27-
MY_TEST: ${{ steps.env-variables.outputs.version }}
28-
MY_YAKYAK: $(node -e "console.log(require('./package.json').version);")
29-
run: echo $YAKYAK_TMP -- $YAKYAK_VERSION -- $MY_TEST -- $MY_YAKYAK -- $NPM_DEBUG_LEVEL
30-
# - run: |
31-
# # install wine 32-bit architecture
32-
# sudo dpkg --add-architecture i386
33-
# sudo apt-get -qq update
34-
# sudo rm /var/lib/dpkg/lock
35-
# sudo apt-get install -y -qq wine-stable zip xvfb fakeroot
36-
# wine wineboot --init # WINEARCH=win32
37-
# - run: npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:linux-x64
38-
# - run: npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:linux-arm64
39-
# - run: npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:linux-ia32
40-
# - run: npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:darwin-x64
41-
# - run: npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:darwin-arm64
42-
# - run: xvfb-run npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:win32
43-
# #- run: |
44-
# # # dependencies for RPM, DEB and Pacman binaries
45-
# # # install fpm
46-
# # sudo gem install --no-document fpm
47-
# # # needed to deploy on rpm / pacman
48-
# # sudo apt-get install -y -qq rpm libarchive-tools
49-
# # build rpm, deb and pacman
50-
# #- run: npm run -loglevel ${NPM_DEBUG_LEVEL} gulp deploy:linux-x64:rpm:nodep
51-
# #- run: npm run -loglevel ${NPM_DEBUG_LEVEL} gulp deploy:linux-x64:deb:nodep
52-
# #- run: npm run -loglevel ${NPM_DEBUG_LEVEL} gulp deploy:linux-x64:pacman:nodep
53-
# #- run: npm run -loglevel ${NPM_DEBUG_LEVEL} gulp deploy:linux-ia32:rpm:nodep
54-
# #- run: npm run -loglevel ${NPM_DEBUG_LEVEL} gulp deploy:linux-ia32:deb:nodep
55-
# #- run: npm run -loglevel ${NPM_DEBUG_LEVEL} gulp deploy:linux-ia32:pacman:nodep
56-
# #
57-
# - name: Create Release
58-
# id: create_release
59-
# uses: actions/create-release@v1
60-
# env:
61-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
62-
# with:
63-
# tag_name: rolling-test2 #${{ github.ref }}
64-
# release_name: Release ${{ github.ref }}
65-
# body: |
66-
# Changes in this Release
67-
# - First Change
68-
# - Second Change
69-
# draft: false
70-
# prerelease: true
71-
# #
72-
# - name: Upload Release Asset
73-
# id: upload-release-asset
74-
# uses: actions/upload-release-asset@v1
75-
# env:
76-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77-
# with:
78-
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
79-
# asset_path: ./dist/yakyak-${{ steps.env_variables.env.YAKYAK_VERSION }}-win32-x64.zip
80-
# asset_name: yakyak-${{ env.YAKYAK_VERSION }}-win32-x64.zip
81-
# asset_content_type: application/zip
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
58+
with:
59+
tag_name: rolling-test3 #${{ github.ref }}
60+
release_name: Release ${{ github.ref }}
61+
body: |
62+
Changes in this Release
63+
- First Change
64+
- Second Change
65+
draft: false
66+
prerelease: true
67+
#
68+
- name: Upload Release Asset
69+
id: upload-release-asset
70+
uses: actions/upload-release-asset@v1
71+
env:
72+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73+
with:
74+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
75+
asset_path: ./dist/yakyak-${{ steps.env-variables.outputs.version }}-win32-x64.zip
76+
asset_name: yakyak-${{ steps.env-variables.outputs.version }}-win32-x64.zip
77+
asset_content_type: application/zip

0 commit comments

Comments
 (0)