Skip to content

Commit

Permalink
👷 Add a new CI system for the automatic release
Browse files Browse the repository at this point in the history
  • Loading branch information
0ncorhynchus authored and kozo2 committed Dec 26, 2019
1 parent bcd11df commit 7cf7355
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Create Release

on: [push] # TODO
on:
push:
tags:
- 'v*'

jobs:
build:
Expand All @@ -20,6 +23,22 @@ jobs:
- name: Archive codes into ecell4_base.tar.gz
run: |
tar -zcvf ecell4_base.tar.gz -X ecell4_base/exclude_files ecell4_base
- name: Test the archive is ok
run: |
ls -lh ecell4_base.tar.gz
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: Upload the tarball
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ecell4_base.tar.gz
asset_name: ecell4_base.tar.gz
asset_content_type: application/x-tar

0 comments on commit 7cf7355

Please sign in to comment.