Skip to content

Commit

Permalink
Upload website too
Browse files Browse the repository at this point in the history
  • Loading branch information
SquidDev committed Jun 20, 2024
1 parent 378d86e commit 4ccc774
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 42 deletions.
39 changes: 14 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,40 +80,29 @@ jobs:
run: opam install . --deps-only

- name: Build release
shell: bash
run: |
opam exec -- dune subst
opam exec -- dune build ${{ matrix.dune-flags }} -p illuaminate @install
opam exec -- dune install --prefix=_install
cp _install/bin/${{ matrix.input-file }} ${{ matrix.output-file }}
- name: Publish executable
OUT_DIR="out/bin/$(git describe --always --abbrev=7)"
mkdir -p "$OUT_DIR"
cp _install/bin/${{ matrix.input-file }} "$OUT_DIR/${{ matrix.output-file }}"
- name: Upload executable
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.output-file }}
path: ${{ matrix.output-file }}
path: ./out
if-no-files-found: error
retention-days: 1

upload_archives:
name: Upload Archives
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download executable
uses: actions/download-artifact@v4
- name: Upload website
uses: actions/upload-artifact@v4
with:
path: artifacts

- name: Upload
run: .github/workflows/deploy.sh 2> /dev/null
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
SSH_USER: ${{ secrets.SSH_USER }}
SSH_HOST: ${{ secrets.SSH_HOST }}
SSH_PORT: ${{ secrets.SSH_PORT }}
name: Website
path: _install/etc/illuaminate/web/
if-no-files-found: error
retention-days: 1
if: "matrix.name == 'Linux'"
17 changes: 0 additions & 17 deletions .github/workflows/deploy.sh

This file was deleted.

0 comments on commit 4ccc774

Please sign in to comment.