Skip to content

Commit

Permalink
Merge pull request #10 from HyperCodec/4-shuttle-installation-optimiz…
Browse files Browse the repository at this point in the history
…ation

optimize cargo shuttle installation
  • Loading branch information
HyperCodec authored Sep 14, 2023
2 parents e81660c + 425c92d commit 5ac55c4
Show file tree
Hide file tree
Showing 146 changed files with 25 additions and 8,934 deletions.
27 changes: 25 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,31 @@ inputs:
required: true
project_name:
description: "The name of the Shuttle project"
default: "None provided"
path:
description: "The path to your shuttle project"
default: "./"
runs:
using: "node16"
main: main.js
using: "composite"

steps:
- name: Install cargo-binstall
uses: cargo-bins/cargo-binstall@install-cargo-binstall-1.0.0

- name: Install cargo-shuttle
run: cargo binstall cargo-shuttle -y
shell: sh

- name: Login to shuttle
run: cargo shuttle login --api-key ${{ inputs.api_key }}
shell: sh

- name: Deploy to shuttle
run: |
if [[ "${{ inputs.project_name }}" == "None provided" ]]; then
cargo shuttle deploy
else
cargo shuttle deploy --name ${{ inputs.project_name }}
fi
shell: bash
working-directory: ${{ inputs.path }}
31 changes: 0 additions & 31 deletions main.js

This file was deleted.

12 changes: 0 additions & 12 deletions node_modules/.bin/uuid

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/uuid.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/uuid.ps1

This file was deleted.

53 changes: 0 additions & 53 deletions node_modules/.package-lock.json

This file was deleted.

9 changes: 0 additions & 9 deletions node_modules/@actions/core/LICENSE.md

This file was deleted.

Loading

0 comments on commit 5ac55c4

Please sign in to comment.