diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..8ef6f5e1 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,20 @@ +name: Docs + +on: + - push + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.4.0 + - uses: cachix/install-nix-action@v15 + with: + nix_path: nixpkgs=channel:nixos-unstable + - name: publish + run: make publish + - name: Deploy + uses: JamesIves/github-pages-deploy-action@4.1.0 + with: + BRANCH: gh-pages + FOLDER: docs/book diff --git a/.github/workflows/ci.yml b/.github/workflows/release.yml similarity index 68% rename from .github/workflows/ci.yml rename to .github/workflows/release.yml index 29147d29..5f5e497e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,9 @@ -name: CI +name: Release on: - - pull_request - - push + push: + tags: + - '*' jobs: linux-binary: @@ -40,17 +41,3 @@ jobs: paisa-* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2.4.0 - - uses: cachix/install-nix-action@v15 - with: - nix_path: nixpkgs=channel:nixos-unstable - - name: publish - run: make publish - - name: Deploy - uses: JamesIves/github-pages-deploy-action@4.1.0 - with: - BRANCH: gh-pages - FOLDER: docs/book