Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
Tenjin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nawasan Wisitsingkhon
Tenjin
Commits
933b52bf
Commit
933b52bf
authored
Oct 04, 2024
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workflows: refactor and create CD for deploy
parent
6c690d88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
21 deletions
+26
-21
CD.yml
.github/workflows/CD.yml
+25
-0
CI.yml
.github/workflows/CI.yml
+1
-21
No files found.
.github/workflows/CD.yml
0 → 100644
View file @
933b52bf
name
:
CD
on
:
push
:
branches
:
[
"
main"
]
workflow_run
:
workflows
:
[
"
CI"
]
types
:
-
completed
jobs
:
release
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Setup
uses
:
dtolnay/rust-toolchain@stable
with
:
toolchain
:
stable
-
name
:
Build
run
:
cargo build --release
-
name
:
Publish
env
:
CARGO_REGISTRY_TOKEN
:
${{ secrets.CARGO_REGISTRY_TOKEN }}
run
:
cargo publish
.github/workflows/CI.yml
View file @
933b52bf
name
:
CI
name
:
CI
on
:
on
:
[
push
,
pull_request
]
push
:
branches
:
[
"
main"
]
pull_request
:
branches
:
[
"
main"
]
jobs
:
jobs
:
linux
:
linux
:
...
@@ -54,19 +50,3 @@ jobs:
...
@@ -54,19 +50,3 @@ jobs:
run
:
cargo build --release
run
:
cargo build --release
-
name
:
Run tests
-
name
:
Run tests
run
:
cargo test --all-features
run
:
cargo test --all-features
release
:
runs-on
:
ubuntu-latest
needs
:
[
linux
,
windows
]
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Setup
uses
:
dtolnay/rust-toolchain@stable
with
:
toolchain
:
stable
-
name
:
Build
run
:
cargo build --release
-
name
:
Publish
env
:
CARGO_REGISTRY_TOKEN
:
${{ secrets.CARGO_REGISTRY_TOKEN }}
run
:
cargo publish
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment