Skip to content
39 changes: 39 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: create release

on:
push:
branches:
- '*'
schedule:
- cron: "0 0 * * *"
workflow_dispatch:


jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout
with:
submodules: true

- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

- name: prepare
run: |
wget https://raw.githubusercontent.com/fabacab/git-archive-all.sh/master/git-archive-all.sh
chmod 777 git-archive-all.sh
./git-archive-all.sh
gzip < SMESH.tar > SMESH_${{ steps.vars.outputs.tag }}.tar.gz

- uses: svenstaro/upload-release-action@v2
name: Upload binaries to release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: SMESH_${{ steps.vars.outputs.tag }}.tar.gz
tag: ${{ steps.vars.outputs.tag }}
overwrite: true
file_glob: true