From b525f18f6bc96b54d83ad646c39949e6cd29aae5 Mon Sep 17 00:00:00 2001 From: Dustin Spicuzza Date: Sat, 30 Apr 2022 02:06:38 -0400 Subject: [PATCH] Copy latest commit to interactive demo --- .github/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..c703303 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,31 @@ +# deploy to github pages +name: Build and Deploy +on: + push: + branches: + - main +jobs: + deploy: + concurrency: ci-${{ github.ref }} + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v3 + + - name: Build + run: | + echo "__version__ = '$(git describe --tags)'" > cxxheaderparser/version.py + + mkdir build + cp -r cxxheaderparser build + + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4.3.3 + with: + branch: gh-pages + folder: build + clean: true + clean-exclude: | + index.html + _index.py \ No newline at end of file