From 667ac96521acfbf8428adc9c31dfe5eb4556d24f Mon Sep 17 00:00:00 2001 From: 2205u Date: Mon, 24 Jun 2024 21:20:58 +0530 Subject: [PATCH 1/3] workflow: add shuttle deploy action --- .github/workflows/deploy.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..3c5bb00 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,20 @@ +name: Shuttle Deploy + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: shuttle-hq/deploy-action@main + with: + deploy-key: ${{ secrets.SHUTTLE_API_KEY }} + name: "amd" + secrets: | + DISCORD_TOKEN = '${{ secrets.DISCORD_TOKEN }}' + + From 0a8701e8867eaba38fe899915e5556c53453446a Mon Sep 17 00:00:00 2001 From: 2205u Date: Tue, 25 Jun 2024 01:33:13 +0530 Subject: [PATCH 2/3] workflow: add shuttle-run action to PRs --- .github/workflows/deploy.yml | 2 -- .github/workflows/shuttle-run.yml | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/shuttle-run.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3c5bb00..faefd4c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,5 +16,3 @@ jobs: name: "amd" secrets: | DISCORD_TOKEN = '${{ secrets.DISCORD_TOKEN }}' - - diff --git a/.github/workflows/shuttle-run.yml b/.github/workflows/shuttle-run.yml new file mode 100644 index 0000000..008c883 --- /dev/null +++ b/.github/workflows/shuttle-run.yml @@ -0,0 +1,17 @@ +name: shuttle-deploy +on: + pull_request: + branches: [ "main", "develop" ] + +jobs: + deploy-project: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run shuttle project locally. + uses: denytwice/shuttle-deploy@v1.0 + with: + secrets: | + DISCORD_TOKEN = '${{ secrets.DISCORD_TOKEN }}' From 21599781e6e6347878e4dafa69361153e74b53db Mon Sep 17 00:00:00 2001 From: 2205u Date: Tue, 25 Jun 2024 01:43:45 +0530 Subject: [PATCH 3/3] workflow: update shuttle-run action name and repo --- .github/workflows/shuttle-run.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/shuttle-run.yml b/.github/workflows/shuttle-run.yml index 008c883..bd27c99 100644 --- a/.github/workflows/shuttle-run.yml +++ b/.github/workflows/shuttle-run.yml @@ -1,4 +1,4 @@ -name: shuttle-deploy +name: shuttle-run on: pull_request: branches: [ "main", "develop" ] @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v4 - name: Run shuttle project locally. - uses: denytwice/shuttle-deploy@v1.0 + uses: denytwice/shuttle-run@v1.0 with: secrets: | DISCORD_TOKEN = '${{ secrets.DISCORD_TOKEN }}'