Skip to content

Commit

Permalink
+ Tag ci
Browse files Browse the repository at this point in the history
  • Loading branch information
meloalright committed Oct 22, 2023
1 parent 242ffa6 commit 3c7c415
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: CI

on:
push:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/Tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Tag

on:
push:
tags:
- '*.*.*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: "Compress Source Code"
if: true
uses: master-atul/tar-action@v1.0.2
with:
command: c
cwd: "./"
files: "three_body_e2021"
outPath: "${{ runner.temp }}/3body-lang.tar.gz"

- name: "Release Source Code"
uses: pragmatrix/release-action@exp
with:
owner: rustq
repo: 3body-lang
tag: ${{ env.RELEASE_VERSION }}
allowUpdates: true
replacesArtifacts: true
artifacts: "${{ runner.temp }}/3body-lang.tar.gz"
artifactErrorsFailBuild: true
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
3 changes: 2 additions & 1 deletion three_body_e2021/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ rand = { version = "0.7.3" }
reqwest = { version = "0.11", features = ["blocking"] }

[[bin]]
name = "repl"
name = "three_body"
path = "src/bin/main.rs"
required-features = ["repl"]

[features]
default = ["repl"]
repl = ["rustyline"]
wasm = []

0 comments on commit 3c7c415

Please sign in to comment.