WeCross v1.4.0 #48
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish demo | |
on: | |
release: | |
types: [prereleased] | |
jobs: | |
build: | |
name: Publish binaries | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v2-beta | |
with: | |
node-version: '10' | |
- name: Download demo requirements | |
run: cd demo/ && bash .prepare.sh && cd - | |
- name: Chmod | |
run: chmod +x demo/*.sh && chmod +x demo/*/*.sh | |
- name: Pack | |
run: tar -zcvf demo.tar.gz demo/ | |
- name: Checksum | |
run: md5sum demo.tar.gz > demo.tar.gz.md5 | |
- name: Upload demo to release | |
uses: svenstaro/upload-release-action@v1-release | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: demo.tar.gz | |
asset_name: demo.tar.gz | |
tag: ${{ github.ref }} | |
overwrite: true | |
- name: Upload checksum to release | |
uses: svenstaro/upload-release-action@v1-release | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: demo.tar.gz.md5 | |
asset_name: demo.tar.gz.md5 | |
tag: ${{ github.ref }} | |
overwrite: true |