Skip to content

Commit

Permalink
feat: add workflow to publish website
Browse files Browse the repository at this point in the history
  • Loading branch information
lanjoni committed Oct 15, 2024
1 parent 368e8ec commit c8fb989
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy

on:
push:
branches: [ main ]

workflow_dispatch:

jobs:
deploy:
strategy:
matrix:
os-version: [ubuntu-latest]
node-version: [16.x]
runs-on: ubuntu-latest

steps:
- name: Clone Repo
uses: actions/[email protected]

- name: Prepare java
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '11'

- name: Install clojure cli
uses: DeLaGuardo/setup-clojure@master
with:
cli: 1.11.1.1113

- name: Build ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- run: |
npm install
npm run release
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
cname: lanjoni.dev

0 comments on commit c8fb989

Please sign in to comment.