diff --git a/.github/workflows/deploy-releases.yml b/.github/workflows/deploy-releases.yml index c1a6ad4e6..ffee101af 100644 --- a/.github/workflows/deploy-releases.yml +++ b/.github/workflows/deploy-releases.yml @@ -14,7 +14,7 @@ jobs: - name: npm install run: | - npm install + cd releases && npm install - name: Clone website directory run: | @@ -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 @@ -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 diff --git a/.github/workflows/deploy-slintpad.yml b/.github/workflows/deploy-slintpad.yml index 63e6335c8..714207f23 100644 --- a/.github/workflows/deploy-slintpad.yml +++ b/.github/workflows/deploy-slintpad.yml @@ -14,7 +14,7 @@ jobs: - name: npm install run: | - npm install + cd slintpad && npm install - name: Clone website directory run: | @@ -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 @@ -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 diff --git a/.github/workflows/deploy-snapshots.yml b/.github/workflows/deploy-snapshots.yml index 77515e920..16a844186 100644 --- a/.github/workflows/deploy-snapshots.yml +++ b/.github/workflows/deploy-snapshots.yml @@ -14,7 +14,7 @@ jobs: - name: npm install run: | - npm install + cd snapshots && npm install - name: Clone website directory run: | @@ -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 @@ -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 diff --git a/releases/package.json b/releases/package.json new file mode 100644 index 000000000..484c9ec1f --- /dev/null +++ b/releases/package.json @@ -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" +} diff --git a/snapshots/package.json b/snapshots/package.json new file mode 100644 index 000000000..fb7c9bb27 --- /dev/null +++ b/snapshots/package.json @@ -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" +}