Deploy Website #2184
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Website | |
on: | |
workflow_call: | |
inputs: | |
ref: | |
type: string | |
required: true | |
push: | |
branches: | |
- main | |
workflow_run: | |
workflows: [Build Tarballs] | |
types: | |
- completed | |
concurrency: | |
group: website | |
jobs: | |
build: | |
name: Build | |
runs-on: [self-hosted, website] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
ref: "${{ inputs.ref }}" | |
clean: false | |
- name: Build the website | |
run: | | |
cp /var/www/html/download/index.json assets/download/index.json | |
/home/ci/deps/zig-x86_64-linux-0.15.1/zig build --summary new -p /var/www/html/ |