Skip to content

Commit

Permalink
Updated: updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ngha-Boris committed Jun 19, 2024
1 parent 17a9105 commit cdc1f89
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 82 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/fib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
build:
Expand All @@ -23,14 +25,20 @@ jobs:
profile: minimal
override: true

- name: Set up working directory
run: cd your_project_directory

- name: Install Dependencies
run: cargo fetch
working-directory: your_project_directory

- name: Run Tests
run: cargo test
working-directory: your_project_directory

- name: Build Project
run: cargo build --release
working-directory: your_project_directory

deploy:
runs-on: self-hosted
Expand All @@ -48,12 +56,19 @@ jobs:
profile: minimal
override: true

- name: Set up working directory
run: cd your_project_directory

- name: Install Dependencies
run: cargo fetch
working-directory: your_project_directory

- name: Build Project
run: cargo build --release
working-directory: your_project_directory

- name: Deploy to Production
run: |
# Add your deployment script/command here
echo "Deploying to production..."
working-directory: your_project_directory
22 changes: 0 additions & 22 deletions .github/workflows/rust.yml

This file was deleted.

59 changes: 0 additions & 59 deletions fib.yml

This file was deleted.

0 comments on commit cdc1f89

Please sign in to comment.