Skip to content

Add package.json to releases and snapshots #1

Add package.json to releases and snapshots

Add package.json to releases and snapshots #1

name: Deploy to releases.slint.dev
on:
push:
paths: 'releases/**'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Repository Checkout
uses: actions/checkout@v4
- name: npm install
run: |
cd releases && npm install
- name: Clone website directory
run: |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "${GITHUB_ACTOR}"
ssh-agent sh -c 'echo "${{ secrets.WEBSITE_READ_SSH_KEY }}" | ssh-add - && git clone [email protected]:slint-ui/website.git --depth 1'
- name: Copy index.html and 404.html
run: |
cp website/docs.html index.html
cp website/404.html 404.html
rm -rf website
- name: Install Netlify
run: |
npm install [email protected] -g
- name: Install Dependencies
run: |
npm ci
- name: Build project
run: |
npm run build
- name: Deploy to Netlify
id: netlify_deploy
run: |
netlify deploy \
--dir . \
--site ${{ secrets.NETLIFY_RELEASES_SITE_ID }} \
--auth ${{ secrets.NETLIFY_API_TOKEN }} \
--prod