update lightclient #12
This file contains 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: Test, build, deploy | |
on: | |
push: | |
branches: | |
- main # Set a branch to deploy | |
pull_request: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- uses: szenius/[email protected] | |
with: | |
timezoneLinux: "Europe/Prague" | |
- name: Build sources | |
run: make | |
# - name: Build changelog | |
# run: make changelog | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install web dependencies | |
run: cd web && npm ci | |
- name: Build web frontend | |
run: make build-web | |
- name: Consolidate build | |
run: make consolidate | |
- name: Add custom domain | |
run: "touch output/CNAME && echo \"cd.ethevents.club\" >> output/CNAME" | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./output |