Skip to content

Fix #352 (#388)

Fix #352 (#388) #121

Workflow file for this run

name: publish
on:
push:
branches:
- master
paths:
- 'web/**'
- 'shared/liboxide/**'
- '.github/workflows/publish.yml'
- '.github/actions/web/**'
- '.github/actions/sync-repository/**'
workflow_dispatch:
jobs:
build:
name: Build and publish the website
runs-on: ubuntu-20.04
steps:
- name: Checkout the Git repository
uses: actions/checkout@v4
with:
submodules: true
- name: Build web
uses: ./.github/actions/web
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'web/dist/'
deploy:
needs: build
if: ${{ github.ref == 'refs/heads/master' }}
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4