Skip to content

Commit

Permalink
Draft a github release (with bits!) when a new tag is pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
sz3 committed Feb 20, 2022
1 parent 2010df7 commit 9d52131
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: release

on:
push:
tags:
- '*'

jobs:
package-cimbar:
runs-on: ubuntu-latest
steps:
- name: Get the code
uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: Get openCV
run: |
wget https://github.com/opencv/opencv/archive/refs/tags/4.5.5.zip
unzip 4.5.5.zip
mv opencv-4.5.5 opencv4
- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: emscripten/emsdk:latest
options: -v ${{ github.workspace }}:/usr/src/app
shell: bash
run: |
bash /usr/src/app/package-wasm.sh
- name: Show results
run: ls -l web/

- name: Create release
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
web/cimbar.asmjs.zip
web/cimbar.wasm.tar.gz
2 changes: 1 addition & 1 deletion package-wasm.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
#docker run --mount type=bind,source="$(pwd)",target="/usr/src/app" -it emscripten/emsdk
#docker run --mount type=bind,source="$(pwd)",target="/usr/src/app" -it emscripten/emsdk:latest

cd /usr/src/app

Expand Down

0 comments on commit 9d52131

Please sign in to comment.