Skip to content

Commit

Permalink
Add package.json to releases and snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
aurindam committed Jul 16, 2024
1 parent 5cc5d8a commit c4c10f2
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- name: npm install
run: |
npm install
cd releases && npm install
- name: Clone website directory
run: |
Expand All @@ -24,8 +24,8 @@ jobs:
- name: Copy index.html and 404.html
run: |
cp website/docs.html releases/index.html
cp website/404.html releases/404.html
cp website/docs.html index.html
cp website/404.html 404.html
rm -rf website
- name: Install Netlify
Expand All @@ -44,7 +44,7 @@ jobs:
id: netlify_deploy
run: |
netlify deploy \
--dir releases \
--dir . \
--site ${{ secrets.NETLIFY_RELEASES_SITE_ID }} \
--auth ${{ secrets.NETLIFY_API_TOKEN }} \
--prod
8 changes: 4 additions & 4 deletions .github/workflows/deploy-slintpad.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- name: npm install
run: |
npm install
cd slintpad && npm install
- name: Clone website directory
run: |
Expand All @@ -24,8 +24,8 @@ jobs:
- name: Copy index.html and 404.html
run: |
cp website/docs.html slintpad/index.html
cp website/404.html slintpad/404.html
cp website/docs.html index.html
cp website/404.html 404.html
rm -rf website
- name: Set environment variables
Expand All @@ -35,4 +35,4 @@ jobs:
- name: Publish to staging-slint from staging-dist
run: |
npx wrangler@3 pages deploy slintpad --project-name=slintpad --commit-dirty=true
npx wrangler@3 pages deploy . --project-name=slintpad --commit-dirty=true
8 changes: 4 additions & 4 deletions .github/workflows/deploy-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- name: npm install
run: |
npm install
cd snapshots && npm install
- name: Clone website directory
run: |
Expand All @@ -24,8 +24,8 @@ jobs:
- name: Copy index.html and 404.html
run: |
cp website/docs.html snapshots/index.html
cp website/404.html snapshots/404.html
cp website/docs.html index.html
cp website/404.html 404.html
rm -rf website
- name: Install Netlify
Expand All @@ -44,7 +44,7 @@ jobs:
id: netlify_deploy
run: |
netlify deploy \
--dir snapshots \
--dir . \
--site ${{ secrets.NETLIFY_SNAPSHOTS_SITE_ID }} \
--auth ${{ secrets.NETLIFY_API_TOKEN }} \
--prod
23 changes: 23 additions & 0 deletions releases/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "releases",
"version": "1.0.0",
"description": "Collection of Slint releases",
"main": "index.html",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/slint-ui/www-releases.git"
},
"keywords": [
"Slint",
"Releases"
],
"author": "The Slint Team",
"license": "SEE LICENSE IN https://github.com/slint-ui/www-releases/blob/master/LICENSE.md",
"bugs": {
"url": "https://github.com/slint-ui/slint/issues"
},
"homepage": "https://releases.slint.dev"
}
23 changes: 23 additions & 0 deletions snapshots/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "snapshots",
"version": "1.0.0",
"description": "Collection of Slint nightly builds",
"main": "index.html",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/slint-ui/www-releases.git"
},
"keywords": [
"Slint",
"nightly"
],
"author": "The Slint Team",
"license": "SEE LICENSE IN https://github.com/slint-ui/www-releases/blob/master/LICENSE.md",
"bugs": {
"url": "https://github.com/slint-ui/slint/issues"
},
"homepage": "https://snapshots.slint.dev"
}

0 comments on commit c4c10f2

Please sign in to comment.