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

Create create_release.yml #39

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
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