Skip to content

Commit

Permalink
simplify github-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hansiboy1999 committed Jan 28, 2025
1 parent e390e54 commit bda0e35
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-server.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: NixOS Server Provisioner
name: start server

on:
workflow_dispatch:
Expand Down
32 changes: 29 additions & 3 deletions .github/workflows/main.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: publish

on:
push:
branches:
- main
release:
types: [created]

permissions:
packages: write
Expand All @@ -17,6 +16,33 @@ env:
IMAGE_TAG: 1.0

jobs:
rust_release:
name: Build Release
runs-on: windows-latest
permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Build release in services/ingest
working-directory: ./services/ingest
run: cargo build --release

- name: Create Release Asset
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./services/ingest/target/release/ingest.exe

build_frontend_docker_image:
runs-on: ubuntu-latest
steps:
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/rust-release.yml

This file was deleted.

0 comments on commit bda0e35

Please sign in to comment.