Skip to content

Commit e811468

Browse files
committed
+ Tag ci
1 parent 242ffa6 commit e811468

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust
1+
name: CI
22

33
on:
44
push:

.github/workflows/Tag.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Tag
2+
3+
on:
4+
push:
5+
tags:
6+
- '*.*.*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: "Compress Source Code"
16+
if: true
17+
uses: master-atul/tar-action@v1.0.2
18+
with:
19+
command: c
20+
cwd: "./"
21+
files: "three_body_e2021"
22+
outPath: "${{ runner.temp }}/3body-lang.tar.gz"
23+
24+
- name: "Release Source Code"
25+
uses: pragmatrix/release-action@exp
26+
with:
27+
owner: rustq
28+
repo: 3body-lang
29+
tag: ${{ env.RELEASE_VERSION }}
30+
allowUpdates: true
31+
replacesArtifacts: true
32+
artifacts: "${{ runner.temp }}/3body-lang.tar.gz"
33+
artifactErrorsFailBuild: true
34+
token: ${{ secrets.GITHUB_TOKEN }}
35+
prerelease: true

three_body_e2021/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ path = "src/bin/main.rs"
1919
required-features = ["repl"]
2020

2121
[features]
22+
default = ["repl"]
2223
repl = ["rustyline"]
2324
wasm = []

0 commit comments

Comments
 (0)