From 0f2ad27bef88855e60c5b0b2be1e203b2e0b51e1 Mon Sep 17 00:00:00 2001 From: Dominik Probst Date: Tue, 17 Dec 2024 14:38:28 +0100 Subject: [PATCH] First try to build and publish a built version of the tool via GitHub Actions and GitHub Pages --- .github/workflows/deploy_pages.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deploy_pages.yml diff --git a/.github/workflows/deploy_pages.yml b/.github/workflows/deploy_pages.yml new file mode 100644 index 0000000..eeca934 --- /dev/null +++ b/.github/workflows/deploy_pages.yml @@ -0,0 +1,31 @@ +name: Build and Deploy to GitHub Pages + +on: + push: + branches: + - reproducability + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install Dependencies + run: npm install + + - name: Build Project + run: npm run build-web + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./html \ No newline at end of file