utxo-prague/.github/workflows/deploy.yml

33 řádky
718 B
YAML
Surový Normální zobrazení Historie

2022-01-03 13:44:08 +01:00
name: Test, build, deploy
2022-01-01 06:09:06 +01:00
on:
push:
branches:
- master # Set a branch to deploy
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2
2022-01-01 07:06:27 +01:00
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Build sources
2022-01-03 13:44:08 +01:00
run: make
2022-01-01 07:06:27 +01:00
2022-01-01 06:14:25 +01:00
- name: Add custom domain
2022-01-01 07:06:27 +01:00
run: "touch dist/CNAME && echo \"spec.utxo.cz\" >> dist/CNAME"
2022-01-01 06:09:06 +01:00
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
2022-01-01 07:06:27 +01:00
publish_dir: ./dist