Skip to content

Automate version number in meta.h #100

Automate version number in meta.h

Automate version number in meta.h #100

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@v3
with:
submodules: true
- name: Build web
uses: ./.github/actions/web
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
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@v1