Skip to content

Commit

Permalink
chore: fix ci commands and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ilbertt committed Jan 18, 2025
1 parent daf845a commit eb4b36f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,27 @@ jobs:
run: |
echo "should_run: ${{ steps.check_template.outputs.should_run }}"
build:
build-and-deploy:
needs: check_run_conditions
if: needs.check_run_conditions.outputs.should_run == 'true'
runs-on: ubuntu-latest
env:
SANITY_STUDIO_PROJECT_ID: ${{ vars.SANITY_STUDIO_PROJECT_ID }}
SANITY_STUDIO_DATASET: ${{ vars.SANITY_STUDIO_DATASET }}
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Setup NodeJS
uses: ./.github/actions/setup-node

- name: Install Juno CLI
run: pnpm add -g @junobuild/cli

- name: Build
run: pnpm build

- name: Deploy to Juno
uses: junobuild/juno-action@main
with:
args: deploy
run: pnpm run deploy
env:
JUNO_TOKEN: ${{ secrets.JUNO_TOKEN }}
SANITY_STUDIO_PROJECT_ID: ${{ vars.SANITY_STUDIO_PROJECT_ID }}
SANITY_STUDIO_DATASET: ${{ vars.SANITY_STUDIO_DATASET }}
7 changes: 2 additions & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"recommendations": [
"esbenp.prettier-vscode",
"astro-build.astro-vscode"
]
}
"recommendations": ["esbenp.prettier-vscode", "astro-build.astro-vscode"]
}
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"editor.formatOnSave": true
}
"editor.formatOnSave": true
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ Make sure you have the following installed:
4. Update the `<your-satellite-id>` in the [`juno.config.ts`](./juno.config.ts) file with the new satellite ID.
5. Create a new project with a dataset on Sanity ([guide](https://www.sanity.io/docs/getting-started-with-sanity)). Copy the project ID and the dataset name once done.
6. Set the environment variables in the `.env` file, following the [.env.example](./.env.example) template.
7. Deploy your project with the Juno CLI:
7. Deploy your project on Juno:
```bash
juno deploy
pnpm run deploy
```

You can now access your website at `https://<your-satellite-id>.icp0.io` and the [Sanity Studio](https://www.sanity.io/studio) at `https://<your-satellite-id>.icp0.io/studio`.

Every time you make a change, you have to deploy your project again with the Juno CLI:

```bash
juno deploy
pnpm run deploy
```

Have a look at the [Set up the GitHub Action](#set-up-the-github-action) and/or [Set up Sanity deployments](#set-up-sanity-deployments) to configure automatic deployments.
Expand Down

0 comments on commit eb4b36f

Please sign in to comment.