Skip to content

Commit

Permalink
chore: add workflow for deployment to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Teolhyn committed Aug 29, 2024
1 parent 93ef8ec commit 87dcdd8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Build and Deploy
on:
push:
branches:
- chore/actions-to-deploy-pages
branches: [ chore/actions-to-deploy-pages ]
workflow_run:
workflows: [nodejs, rust, rustfmt]
types:
Expand All @@ -23,9 +22,25 @@ jobs:
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
- name: Setup node
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Install Stellar
run: |
cargo install --locked stellar-cli --features opt
- name: Setup env
run: cp .env.example .env
- name: Build Reflector
run: |
cd contracts/reflector
soroban contract build
cd ../..
- name: Install and build
run: |
npm install
Expand All @@ -38,7 +53,7 @@ jobs:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down
2 changes: 2 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import tailwind from '@astrojs/tailwind';

// https://astro.build/config
export default defineConfig({
site: 'https://laina-protocol.github.io',
base: '/Laina',
vite: {
plugins: [basicSsl()],
server: {
Expand Down

0 comments on commit 87dcdd8

Please sign in to comment.