-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 Add a new CI system for the automatic release
- Loading branch information
1 parent
bcd11df
commit 7cf7355
Showing
1 changed file
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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 |