From 24946272c3d89fdbfc64912a108079659ff7cf71 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 18 May 2022 19:03:27 +0800 Subject: [PATCH] Fix workflow yet again --- .github/workflows/build.yml | 19 +++++++++++++++++++ .github/workflows/gh-pages.yml | 23 ----------------------- 2 files changed, 19 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..bc15e5e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,19 @@ +name: "Build demo" +on: + push: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v17 + with: + nix_path: nixpkgs=channel:nixpkgs-unstable + - run: nix develop -c make build + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@v4.3.3 + with: + branch: gh-pages + folder: public diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml deleted file mode 100644 index 2b79a3e..0000000 --- a/.github/workflows/gh-pages.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Build site - -on: - push: - branches: - - master - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: cachix/install-nix-action@v16 - - name: Build website - run: | - chmod --recursive u+x ./bin/ - nix develop -c make build - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./public -