Skip to content

Commit

Permalink
Merge pull request #17 from dogeorg/deploy-workflow
Browse files Browse the repository at this point in the history
Create build-and-publish.yml
  • Loading branch information
blendtwenty authored Mar 12, 2024
2 parents 5143d06 + 0e70445 commit b0bf48e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and Publish

on:
push:
branches:
- main

jobs:
build-and-publish:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Run build script
run: ./build.sh

- name: Publish to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
publish_dir: ./dist

0 comments on commit b0bf48e

Please sign in to comment.