mirror of
https://github.com/andwati/andwati.com.git
synced 2026-10-24 20:12:16 +00:00
22 lines
587 B
YAML
22 lines
587 B
YAML
# On every push this script is executed
|
|
name: Build and deploy GH Pages
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
if: github.ref == 'refs/heads/main'
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
- name: build_and_deploy
|
|
uses: shalzz/[email protected]
|
|
env:
|
|
# Target branch
|
|
PAGES_BRANCH: gh-pages
|
|
TOKEN: ${{ secrets.TOKEN }}
|
|
# Or if publishing to the same repo, use the automatic token
|
|
#TOKEN: ${{ secrets.GITHUB_TOKEN }} |