v3.1.1 #69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Pages | |
on: | |
push: | |
branches: | |
- main # Set a branch to deploy | |
- synolib2 # publish on change in either branch | |
permissions: | |
contents: write | |
jobs: | |
build-pages: | |
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: "Checkout synolib2 branch" | |
uses: actions/checkout@v3 | |
with: | |
ref: synolib2 | |
- name: Setup Deno | |
uses: denoland/setup-deno@v2 | |
with: | |
deno-version: v2.x | |
- name: Draw the rest of the owl | |
run: | | |
deno task example_build | |
mkdir ./build | |
cp ./example/index.* ./build/ | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
folder: build |