diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml new file mode 100644 index 0000000..f511916 --- /dev/null +++ b/.github/workflows/create_release.yml @@ -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