Skip to content

Commit

Permalink
ci: Linux packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa committed Dec 29, 2019
1 parent 1704556 commit 8c0ee69
Show file tree
Hide file tree
Showing 4 changed files with 475 additions and 10 deletions.
27 changes: 26 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- '*'

jobs:
build:
npm:
name: Publish
runs-on: ubuntu-latest
steps:
Expand All @@ -28,3 +28,28 @@ jobs:
export NPM_TOKEN=${{ secrets.NPM_TOKEN }}
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> .npmrc
npm publish
linux:
name: Linux Artifact
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '13.x'
- name: Install
run: npm install
- name: Create artifact
run: |
npm run package-linux
cd dist
tar -czvf electronim-linux-x64.tar.gz electronim-linux-x64/
- name: Upload Release Asset
run: |
VERSION=$(echo $GITHUB_REF | sed 's/refs\/tags\///')
curl \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: application/tar+gzip" \
--data-binary @"./dist/electronim-linux-x64.tar.gz" \
"https://uploads.github.com/repos/manusa/electronim/releases/tags/$VERSION/assets?name=electronim-linux-x64.tar.gz"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.idea
/dist
/node_modules
Loading

0 comments on commit 8c0ee69

Please sign in to comment.