-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* changed workflows * removed global env var * fix --------- Co-authored-by: Alem Tuzlak <[email protected]>
- Loading branch information
1 parent
fa60880
commit 53a40ca
Showing
3 changed files
with
91 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,6 @@ on: | |
types: [published] | ||
workflow_dispatch: | ||
|
||
env: | ||
FLY_ORG: ${{ vars.FLY_ORG }} | ||
|
||
jobs: | ||
npm-publish: | ||
runs-on: ubuntu-latest | ||
|
@@ -22,13 +19,22 @@ jobs: | |
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
deploy-preview: | ||
|
||
deploy-docs: | ||
name: "🚀 Deploy Docs" | ||
needs: [npm-publish] | ||
uses: forge42dev/workflows/.github/workflows/deploy-to-fly.yaml@monorepo-matrix | ||
with: | ||
workspace_name: docs | ||
set_cwd_to_workspace: true | ||
github_environment: "docs-release" | ||
secrets: | ||
fly_api_token: ${{ secrets.FLY_API_TOKEN }} | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: docs-release | ||
url: ${{ steps.deploy.outputs.app_url }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: forge-42/[email protected] | ||
id: deploy | ||
env: | ||
FLY_ORG: ${{ vars.FLY_ORG }} | ||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | ||
FLY_REGION: fra | ||
with: | ||
workspace_name: docs | ||
app_name: react-router-devtools-docs-release | ||
use_isolated_workspace: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,6 @@ on: | |
pull_request: | ||
branches: [main] | ||
|
||
env: | ||
FLY_ORG: ${{ vars.FLY_ORG }} | ||
|
||
permissions: | ||
actions: write | ||
contents: read | ||
|
@@ -72,14 +69,23 @@ jobs: | |
# if: always() | ||
# uses: davelosert/vitest-coverage-report-action@v2 | ||
|
||
|
||
deploy-preview: | ||
deploy-docs-pr-preview: | ||
if: ${{ github.event_name == 'pull_request' }} | ||
name: "🚀 Deploy Docs" | ||
needs: [lint, typecheck, vitest] | ||
uses: forge42dev/workflows/.github/workflows/deploy-to-fly.yaml@monorepo-matrix | ||
with: | ||
workspace_name: docs | ||
set_cwd_to_workspace: true | ||
github_environment: "docs-previev" | ||
secrets: | ||
fly_api_token: ${{ secrets.FLY_API_TOKEN }} | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: docs-release | ||
url: ${{ steps.deploy.outputs.app_url }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: forge-42/[email protected] | ||
id: deploy | ||
env: | ||
FLY_ORG: ${{ vars.FLY_ORG }} | ||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | ||
FLY_REGION: fra | ||
with: | ||
workspace_name: docs | ||
app_name: react-router-devtools-docs-pr-${{ github.event.number }} | ||
use_isolated_workspace: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters