Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated deploy yaml #189

Merged
merged 1 commit into from
Feb 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,27 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v2
- name: Check out the repo
uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 20.x
- run: npm install
- run: npm run deploy-main
- name: Installing Dependencies
run: npm install
- name: Build Development
if: github.base_ref == 'development'
run: npm run deploy-dev
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
- name: Build Staging
if: github.base_ref == 'staging'
run: npm run deploy-staging
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
- name: Build Production
if: github.base_ref == 'main'
run: npm run deploy-main
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"build": "vite build",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json && tsc -p tsconfig.node.json",
"deploy-main": "npm run build && permaweb-deploy --ant-process 87OqQaiyhnCWPyM-JbdlFTJ2mHPQUl9zpoWQ6JQ5_GE"
"deploy-main": "npm run build && permaweb-deploy --ant-process 87OqQaiyhnCWPyM-JbdlFTJ2mHPQUl9zpoWQ6JQ5_GE",
"deploy-dev": "npm run build && permaweb-deploy --ant-process 87OqQaiyhnCWPyM-JbdlFTJ2mHPQUl9zpoWQ6JQ5_GE --undername dev",
"deploy-staging": "npm run build && permaweb-deploy --ant-process 87OqQaiyhnCWPyM-JbdlFTJ2mHPQUl9zpoWQ6JQ5_GE --undername staging"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.1.1",
Expand Down