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

42 řádky
915 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:
2022-05-03 16:02:39 +02:00
- uses: actions/checkout@v3
2022-05-03 15:41:47 +02:00
with:
2022-05-03 15:39:33 +02:00
fetch-depth: 0
2022-01-01 06:09:06 +01:00
2022-01-01 07:06:27 +01:00
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
2022-05-30 05:37:04 +02:00
- uses: szenius/set-timezone@v1.0
with:
timezoneLinux: "Europe/Prague"
2022-01-01 07:06:27 +01:00
- name: Build sources
2022-01-03 13:44:08 +01:00
run: make
2022-01-01 07:06:27 +01:00
2023-01-20 01:07:31 +01:00
# - name: Build changelog
# run: make changelog
2022-05-03 15:36:41 +02: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