Skip to content

Commit

Permalink
quick test
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeStanger committed May 30, 2024
1 parent 522c789 commit bcac5a5
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,33 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test

# TODO: !!! Remove me !!!
publish-schema:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: Swatinem/rust-cache@v2
name: Cache dependencies

- name: Install build deps
run: ./.github/scripts/ubuntu_setup.sh

- name: Build
run: cargo build --features schema

- name: Print schema
run: cargo run --features schema -- --print-schema > target/schema.json

- name: Copy file via SSH
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: "target/schema.json"
target: /storage/Public/github/ironbar
strip_components: 1
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
release:
name: 'Create Release'
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -38,6 +39,7 @@ jobs:


publish-crate:
name: 'Publish Crate'
runs-on: ubuntu-latest

steps:
Expand All @@ -58,6 +60,7 @@ jobs:


publish-schema:
name: 'Publish Schema'
runs-on: ubuntu-latest

steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:

jobs:
publish-schema:
name: 'Publish Schema'
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit bcac5a5

Please sign in to comment.