Skip to content

Upstream merge

Upstream merge #19

Workflow file for this run

name: Deploy page
on:
push:
branches: ["main"]
pull_request:
permissions:
contents: read
pages: write
id-token: write
jobs:
build-faucet:
runs-on: ubuntu-latest
defaults:
run:
working-directory: client
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install node
uses: actions/[email protected]
with:
node-version: 20
- run: yarn install --frozen-lockfile
- run: yarn run check
- name: Install Playwright
run: npx playwright install
- run: yarn run test
- run: yarn run build
env:
PUBLIC_CAPTCHA_KEY: 6LesXHomAAAAAGVVTCgc467t8hvBbmK7IlYZCc8O
PUBLIC_FAUCET_URL: https://faucet-api-rococo.liberti.social/drip/web
GITHUB_PAGES: "/${{ github.event.repository.name }}"
STATIC: true
- uses: actions/[email protected]
with:
name: faucet
path: ./client/build
if-no-files-found: error
retention-days: 5
deploy-to-github-pages:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
if: github.event_name == 'push'
needs: [build-faucet]
steps:
- name: Checkout
uses: actions/[email protected]
- name: Download page
uses: actions/[email protected]
with:
name: faucet
path: ./dist
- name: Setup Pages
uses: actions/[email protected]
- name: Upload artifact
uses: actions/[email protected]
with:
path: ./dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]