Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add logic to build and publish a tarball on release #1543

Merged
merged 2 commits into from
Jul 17, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/publish_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Binaries

on:
release:
types:
- published

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Install and Build 🔧
run: |
npm install
npm run build
tar -czf ipfs-webui.tar.gz build/*

- name: Copy build-artifacts to Release
uses: skx/github-action-publish-binaries@master
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please pin skx/github-action-publish-binaries to a specific version

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry missed this comment pinned to @release-0.14

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: "./ipfs-webui.tar.gz"