Skip to content

Deploy Landing

Deploy Landing #62

name: Deploy Landing
on:
push:
paths:
- 'landing/**'
workflow_run:
workflows: [ "Release" ]
types:
- completed
workflow_dispatch:
# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
cache-dependency-path: landing/package-lock.json
- name: Install dependencies
run: npm install
working-directory: landing
- name: Update downloads manifest
run: node ./scripts/landing_releases.js
- name: Setup Pages
uses: actions/configure-pages@v3
with:
static_site_generator: sveltekit
working-directory: landing
- name: Build
run: npm run build
working-directory: landing
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v1
with:
# this should match the `pages` option in your adapter-static options
path: "landing/build/"
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v1